AutosarC++18_03-A7.1.7

Each expression statement and identifier declaration shall be placed on a separate line

Required inputs: IR

Possible Messages

Key

Text

Severity

Disabled

multi_declaration

Multiple declarators in single declaration

None

False

multiple_statements_per_line

Multiple statements per line.

None

False

Options

allow_in_for_loop_init

allow_in_for_loop_init : bool = True

Whether a multi-declaration is allowed in the for-init statement
 

allow_uninitialized_simple_type

allow_uninitialized_simple_type : bool = False

Whether a multi-declaration of simple type is allowed when there is no initialization
 

ignore_stmts

ignore_stmts : set[bauhaus.ir.PIR_Class_Name] = {'C_For_Loop', 'General_Statement_Sequence'}

Statements to be ignored when counting statements.