Main Content
Group 9: Variables
The custom rules 9.x
in Polyspace® enforce naming conventions for variables. For information on how to enable
these rules, see Check custom rules
(-custom-rules)
. These
rules do not apply to variables that are defined within a class or to variables that are
function parameters.
Number | Rule | Details |
---|---|---|
9.1 | All global nonstatic variables must follow the specified pattern. | A global nonstatic variable is a variable with external linkage. |
9.2 | All global static variables must follow the specified pattern. | A global static variable is a variable with internal linkage. |
9.3 | All local nonstatic variables must follow the specified pattern. | A local nonstatic variable is a variable without linkage. |
9.4 | All local static variables must follow the specified pattern. | A local static variable is a variable declared static in a function. |