Checker | Guideline |
---|
| | EXP50-CPP. Do not depend on the order of evaluation for side effects |
| MEM50-CPP. Do not access freed memory |
| CTR01-CPP. Do not apply the sizeof operator to a pointer when taking the size of an array |
| DCL01-CPP. Do not reuse variable names in subscopes |
| DCL15-CPP. Declare file-scope objects or functions that do not need external linkage in an unnamed namespace |
| EXP01-CPP. Do not take the size of a pointer to determine the size of the pointed-to type |
| EXP12-CPP. Do not ignore values returned by functions or methods |
| FLP05-CPP. Convert integers to floating point for floating point operations |
| INT07-CPP. Use only explicitly signed or unsigned char type for numeric values |
| INT13-CPP. Use bitwise operators only on unsigned operands |
| MSC07-CPP. Detect and remove dead code |
| MSC12-CPP. Detect and remove code that has no effect |
| STR08-CPP. Do not specify the bound of a character array initialized with a string literal |