Qt-Generic-TypedefCheck¶
Do not redefine a typedef
Required inputs: IR
Note that if multiple definitions of a typedef exist, all those definitions must be equivalent to avoid violating the One Definition Rule (which causes undefined behavior).
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
differing_typedef_redefinition |
Typedef redefined with different definition. |
None |
False |
identical_typedef_redefinition |
Typedef redefined. |
advisory |
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
report_identical_redefinitions¶
report_identical_redefinitions : bool = False
report_template_instance_redefinitions¶
report_template_instance_redefinitions : bool = True