AutosarC++17_03-A2.11.3¶
A “user-defined” type name shall be a unique identifier within a namespace
Required inputs: IR
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
composite_defined_multiple_times |
Composite type has multiple definitions. |
None |
False |
enum_defined_multiple_times |
Enumeration type has multiple definitions. |
None |
False |
reused_tag |
Tag name reused. |
None |
False |
reused_typedef |
Typedef name reused. |
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
check_types_only_with_external_linkage¶
check_types_only_with_external_linkage : bool = False
tolerate_macros¶
tolerate_macros : bool = False
#define and #undef using the
typedef's name is allowed.
tolerate_typedef¶
tolerate_typedef : bool = False
tolerate_typedefed_entity¶
tolerate_typedefed_entity : bool = False
typedef's underlying type can have
the same name.