AutosarC++17_10-A2.11.5¶
An identifier name of a non-member object or function with static storage duration should not be reused
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 = True
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 = True
use_unqualified_names¶
use_unqualified_names : bool = True
var_filter¶
var_filter : typing.Callable[[Variable], bool] | None = None