The custom rules 8.x in Polyspace® enforce naming conventions for constants. For information on how to enable
these rules, see Check custom rules
(-custom-rules). These
rules do not apply to constants that are defined within a class or to constants that are
function parameters.
| Number | Rule Applied | Other details |
|---|---|---|
| 8.1 | All global nonstatic constants must follow the specified pattern. | A global nonstatic constant is a constant with external linkage. |
| 8.2 | All global static constants must follow the specified pattern. | A global static constant is a constant with internal linkage. |
| 8.3 | All local nonstatic constants must follow the specified pattern. | A local nonstatic constant is a constant without linkage. |
| 8.4 | All local static constants must follow the specified pattern. | A local static constant is a constant declared static in a function. |