AutosarC++17_10-A8.5.4ΒΆ
A constructor taking parameter of type std::initializer_list shall only be defined in classes that internally store a collection of objects
Required inputs: IR
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
constructor_init_list_container |
The class should be a container if a constructor taking std::initializer_list is defined. |
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
This rule has no individual options.