|
9 | 9 |
|
10 | 10 | | Rule | Core Guideline | Count | |
11 | 11 | | :---: | :----------------: | :---: | |
12 | | -| CON.4 | Use `const` | 1 | |
| 12 | +| CON.4 | Use `const` | 4 | |
13 | 13 | | ES.21 | Reduce scope | 3 | |
14 | | -| ES.22 | Decl-Init Split | 2 | |
15 | | -| ES.30 | No Text Macros | 4 | |
| 14 | +| ES.22 | Decl-Init Split | 5 | |
| 15 | +| ES.30 | No Text Macros | 6 | |
16 | 16 | | ES.49 | Use explicit casts | 4 | |
17 | 17 | | E.12 | Use `noexcept` | 3 | |
18 | 18 |
|
19 | 19 | ### Refactoring Translations |
20 | 20 |
|
21 | | -| From | To | |
22 | | -| :-------------------: | :--------------------------------------------: | |
23 | | -| `A` | `array` | |
24 | | -| `SETIC` 1 | `item_count()` | |
25 | | -| `REPSGN` | `replicate_sign` 2 | |
26 | | -| `AV` | `pointer_to_values` | |
27 | | -| `IAV` | `pointer_to_values` | |
28 | | -| `IAV(w)[i] = k` | `set_value_at(w, i, k)` | |
29 | | -| `k & ~1` | `!zero_or_one(k)` | |
30 | | -| `GAT0(z, TYPE, x, y)` | `z = make_array<TYPE, copy_shape_0>(jt, x, y)` | |
31 | | -| `GA(...)` | `make_array` | |
32 | | -| `sc` | `make_scalar_integer` | |
| 21 | +| From | To | |
| 22 | +| :-------------------: | :-------------------------------------------------: | |
| 23 | +| `A` | `array` | |
| 24 | +| `SETIC` 1 | `item_count()` | |
| 25 | +| `REPSGN` | `replicate_sign` 2 | |
| 26 | +| `AV` | `pointer_to_values` | |
| 27 | +| `IAV` | `pointer_to_values` | |
| 28 | +| `IAV(w)[i] = k` | `set_value_at(w, i, k)` | |
| 29 | +| `k & ~1` | `!zero_or_one(k)` | |
| 30 | +| `GAT0(z, TYPE, x, y)` | `z = make_array<TYPE, copy_shape_0>(jt, x, y)` | |
| 31 | +| `GA(...)` | `make_array` | |
| 32 | +| `sc` | `make_scalar_integer` | |
| 33 | +| `DO(m, s)` | `for (int i = 0; i < m; ++i) m` OR `std::algorithm` | |
33 | 34 |
|
34 | 35 | 1. There could be exceptions where this doesn't work |
35 | 36 | 2. Will probably be renamed |
0 commit comments