Download User's Guide

Transcript
NamePointerVar.rule
Items Enforced
NamePointerVar.rule
Prefix variable type pointer names
with ‘p’
This rule checks if your variable type pointer names begin with ‘p’.
Reason for rule: When you add a prefix of a type to a variable, the code
will be more legible and you will prevent many bugs.
Example
int *Foo; // Violation
int *pFoo; // OK
289