|
3 | 3 | Unbounded Array Definition Rules |
4 | 4 | -------------------------------- |
5 | 5 |
|
| 6 | +unbounded_array_definition_100 |
| 7 | +############################## |
| 8 | + |
| 9 | +|phase_2| |error| |whitespace| |
| 10 | + |
| 11 | +This rule checks for whitespace after the **array** keyword. |
| 12 | + |
| 13 | +|configuring_whitespace_rules_link| |
| 14 | + |
| 15 | +**Violation** |
| 16 | + |
| 17 | +.. code-block:: vhdl |
| 18 | +
|
| 19 | + type t_u_array_unconstrained is array (natural range <>) of unsigned; |
| 20 | + type t_u_array_unconstrained is array (natural range <>) of unsigned; |
| 21 | +
|
| 22 | +**Fix** |
| 23 | + |
| 24 | +.. code-block:: vhdl |
| 25 | +
|
| 26 | + type t_u_array_unconstrained is array(natural range <>) of unsigned; |
| 27 | + type t_u_array_unconstrained is array(natural range <>) of unsigned; |
| 28 | +
|
| 29 | +unbounded_array_definition_101 |
| 30 | +############################## |
| 31 | + |
| 32 | +|phase_2| |error| |whitespace| |
| 33 | + |
| 34 | +This rule checks for a single space before the **of** keyword. |
| 35 | + |
| 36 | +|configuring_whitespace_rules_link| |
| 37 | + |
| 38 | +**Violation** |
| 39 | + |
| 40 | +.. code-block:: vhdl |
| 41 | +
|
| 42 | + type t_u_array_unconstrained is array(natural range <>) of unsigned; |
| 43 | +
|
| 44 | +**Fix** |
| 45 | + |
| 46 | +.. code-block:: vhdl |
| 47 | +
|
| 48 | + type t_u_array_unconstrained is array(natural range <>) of unsigned; |
| 49 | +
|
| 50 | +unbounded_array_definition_102 |
| 51 | +############################## |
| 52 | + |
| 53 | +|phase_2| |error| |whitespace| |
| 54 | + |
| 55 | +This rule checks for a single space after the **of** keyword. |
| 56 | + |
| 57 | +|configuring_whitespace_rules_link| |
| 58 | + |
| 59 | +**Violation** |
| 60 | + |
| 61 | +.. code-block:: vhdl |
| 62 | +
|
| 63 | + type t_u_array_unconstrained is array(natural range <>) of unsigned; |
| 64 | +
|
| 65 | +**Fix** |
| 66 | + |
| 67 | +.. code-block:: vhdl |
| 68 | +
|
| 69 | + type t_u_array_unconstrained is array(natural range <>) of unsigned; |
| 70 | +
|
6 | 71 | unbounded_array_definition_500 |
7 | 72 | ############################## |
8 | 73 |
|
|
0 commit comments