AutosarC++18_03-A5.2.6

The operands of a logical && or || shall be parenthesized if the operands contain binary operators

Required inputs: IR

Possible Messages

Key

Text

Severity

Disabled

missing_parens_for_logical_operator_operand

Operand of && or || must be parenthesized.

None

False

Options

allow_sequences

allow_sequences : bool = False

If set to True, sequences of && and sequences of || operators do not need to be individually parenthesized.