C++ checkers | Rule |
---|
| ARR01-CPP. Do not apply the sizeof operator to a pointer when taking the size of an array |
| ARR30-CPP. Guarantee that array and vector indices are within the valid range |
| DCL01-CPP. Do not reuse variable names in subscopes |
| DCL04-CPP. Do not declare more than one variable per declaration |
| DCL06-CPP. Use meaningful symbolic constants to represent literal values in program logic |
| EXP00-CPP. Use parentheses for precedence of operation |
| EXP35-CPP. Do not cast away a const qualification |
| EXP36-CPP. Do not convert pointers into more strictly aligned pointer types |
| INT07-CPP. Use only explicitly signed or unsigned char type for numeric values |
| INT09-CPP. Ensure enumeration constants map to unique values |
| MSC30-CPP. Do not use the rand() function for generating pseudorandom numbers |
| PRE01-CPP. Use parentheses within macros around parameter names |
| PRE02-CPP. Macro replacement lists should be parenthesized |
| PRE06-CPP. Enclose header files in an inclusion guard |
| PRE07-CPP. Avoid using repeated question marks |
| STR34-CPP. Cast characters to unsigned types before converting to larger integer sizes |