AutosarC++18_10-A11.0.2¶
A type defined as struct shall: (1) provide only public data members, (2) not provide any special member functions or methods, (3) not be a base of another struct or class, (4) not inherit from another struct or class
Required inputs: IR
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
no_function_member |
Struct shall not provide any member functions or methods. |
None |
False |
no_struct_as_base |
A struct shall not be a base of another struct or class. |
None |
False |
no_struct_inheritance |
A struct shall not inherit from another struct or class. |
None |
False |
non_public_member |
Structs shall only have public data members. |
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
ignore_template_specializations¶
ignore_template_specializations : bool = False