Index Subtype Definition Rules

index_subtype_definition_100

phase_2 error whitespace

This rule checks for a single space before the range keyword.

Refer to Configuring Whitespace Rules for options on changing the number of whitespaces..

Violation

type my_array is array (natural     range <>) of integer;

Fix

type my_array is array (natural range <>) of integer;

index_subtype_definition_101

phase_2 error whitespace

This rule checks for a single space after the range keyword.

Refer to Configuring Whitespace Rules for options on changing the number of whitespaces..

Violation

type my_array is array (natural range     <>) of integer;

Fix

type my_array is array (natural range <>) of integer;

index_subtype_definition_500

phase_6 error case case_keyword

This rule checks the range keyword in index subtype definitions has the proper case.

Refer to Configuring Uppercase and Lowercase Rules for more information.

Violation

type t_unsigned_array is array(natural RANGE <>) of unsigned;

Fix

type t_unsigned_array is array(natural range <>) of unsigned;