AutosarC++17_03-A12.6.1¶
All class data members that are initialized by the constructor shall be initialized using member initializers
Required inputs: IR
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
implicit_field_init |
Field is only implicitly initialized in constructor. |
None |
False |
missing_field_init |
Field is not initialized in constructor. |
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
exclude_aggregates¶
exclude_aggregates : bool = False
init_functions¶
init_functions : set[bauhaus.analysis.config.FunctionName] = {'Init', 'init'}
inspect_directly_called_methods¶
inspect_directly_called_methods : bool = False
only_member_initializer_list¶
only_member_initializer_list : bool = True
report_missing_field_constructors¶
report_missing_field_constructors : bool = True