AutosarC++19_03-A2.10.4¶
The identifier name of a non-member object with static storage duration or static function shall not be reused within a namespace
Required inputs: IR
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
reused_global_function_name |
Name of object or function with static storage duration reused. |
None |
False |
reused_global_variable_name |
Name of object or function with static storage duration 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
allow_overloads¶
allow_overloads : bool = True
allow_reusing_function_name_for_locals¶
allow_reusing_function_name_for_locals : bool = False
allow_static_no_linkage¶
allow_static_no_linkage : bool = False
detect_different_compilation_units_overloads¶
detect_different_compilation_units_overloads : bool = False
func_filter¶
func_filter : typing.Callable[[bauhaus.ir.Node], bool] | None = None
include_local_variables¶
include_local_variables : bool = False
use_unqualified_names¶
use_unqualified_names : bool = False
var_filter¶
var_filter : typing.Callable[[Variable], bool] | None = None