Wiki Markup |
---|
The C+\+ Standard \[[ISO/IEC 14882-2003|AA. C++ References#ISO/IEC 14882-2003]\] Section 17.4.3.1.2, "Global names" says: "Each name that contains a double underscore (\_ \_) or begins with an underscore followed by an uppercase letter is reserved to the implementation for any use." Trying to use a name of this form may lead to that name conflicting with one used by the implementation, with unpredictable results that may, but may not, be detected at compile time. |
...
In this example, an object is defined with a name that is reserved for the implementation.
Code Block | ||
---|---|---|
| ||
int _Page_Count;
// ...
|
Compliant Solution
To correct this error, use names not beginning with an underscore followed by an uppercase letter and not containing a double underscore.
Code Block | ||
---|---|---|
| ||
int PageCount;
// ...
|
Risk Assessment
...
Rule | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
DCL30 DCL32-CPP | 1 (low) | 1 (unlikely) | 3 (low) | P3 | L3 |
...