AutosarC++18_10-A15.2.1

Constructors that are not noexcept shall not be invoked before program startup

Required inputs: IR

Possible Messages

Key

Text

Severity

Disabled

static_field_only_noexcept

Constructor called that may throw an exception in static field.

None

False

static_variable_only_noexcept

Constructor called that may throw an exception in static variable.

None

False

Options

ignore_const

ignore_const : bool = False

This option should be false for strict Autosar compliance, otherwise constexpr or constinit variables are ignored. Autosar did not consider constexpr variables that may throw exceptions at compile time and pose no initialization problem.