AutosarC++17_10-A12.1.3¶
If all user-defined constructors of a class initialize data members with constant values that are the same across all constructors, then data members shall be initialized using NSDMI instead
Required inputs: IR
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
use_nsdmi |
Use NSDMI for common constant initializations ({}). |
None |
False |
Options¶
This rule shares the following common options: exclude_in_macros, exclude_messages_in_system_headers, excludes, extend_exclude_to_macro_invocations, includes, justification_checker, languages, post_processing, provider, report_at, severity
The following places define options that affect this rule: Stylechecks, Analysis-GlobalOptions
allow_constructors_of_types¶
allow_constructors_of_types : set[bauhaus.analysis.config.QualifiedName] = set()
allow_literal_like_constructors¶
allow_literal_like_constructors : bool = False
min_number_common_inits¶
min_number_common_inits : int = 1