Next: Parameters_Out_Of_Order, Previous: Overloaded_Operators, Up: Predefined Rules
Overly_Nested_Control_Structures
Flag each control structure whose nesting level exceeds the value provided in the rule parameter.
The control structures checked are the following:
if
statement
case
statement
loop
statement
The rule may have the following parameter for the +R option:
If the parameter for the +R option is not a positive integer, the parameter is ignored and the rule is turned ON with the most recently specified maximal non-flagged nesting level.
If more then one option is specified for the gnatcheck call, the later option and new parameter override the previous one(s).
A +R option with no parameter turns the rule ON using the maximal non-flagged nesting level specified by the most recent +R option with a parameter, or the value 4 if there is no such previous +R option.