AutosarC++18_10-A5.10.1

A pointer to member virtual function shall only be tested for equality with null-pointer-constant

Required inputs: IR

Possible Messages

Key

Text

Severity

Disabled

member_virtual_function_comparison

Comparison of a member virtual function with non-nullptr.

None

False

Options

check_class_types

check_class_types : bool = False

Check class for virtual methods that may match a comparison argument.
 

require_nullptr

require_nullptr : bool = False

Disallow the integer 0 as null pointer literal.