AutosarC++17_03-A4.10.1

Only nullptr literal shall be used as the null-pointer-constant

Required inputs: IR

Possible Messages

Key

Text

Severity

Disabled

null_constant

Only nullptr literal shall be used as the null-pointer-constant.

None

False

zero_as_null

Use of literal zero (0) as null-pointer-constant, use {} instead

None

False

Options

require_nullptr

require_nullptr : bool = True

Require C++11 nullptr instead of macro NULL or literal zero (0).