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.

NumberRuleDetails
9.1All global nonstatic variables must follow the specified pattern.A global nonstatic variable is a variable with external linkage.
9.2All global static variables must follow the specified pattern.A global static variable is a variable with internal linkage.
9.3All local nonstatic variables must follow the specified pattern.A local nonstatic variable is a variable without linkage.
9.4All local static variables must follow the specified pattern.A local static variable is a variable declared static in a function.