Checker | Guideline |
|---|
| | EXP50-CPP. Do not depend on the order of evaluation for side effects |
| | EXP17-CPP. Treat relational and equality operators as if they were nonassociative |
| EXP19-CPP. Do not perform assignments in conditional expressions |
| | MSC04-CPP. Use comments consistently and in a readable fashion |
| | MSC12-CPP. Detect and remove code that has no effect |
| | PRE07-CPP. Avoid using repeated question marks |
| STR08-CPP. Do not specify the bound of a character array initialized with a string literal |
| (enabled by | MSC03-CPP. Avoid errors of addition |
| ) and | MSC03-CPP. Avoid errors of addition |
| -Wall | MSC02-CPP. Avoid errors of omission |
| -Wall | MSC03-CPP. Avoid errors of addition |
| -Wall | MSC12-CPP. Detect and remove code that has no effect |
| -Wempty-body | MSC03-CPP. Avoid errors of addition |
| -Wextra | MSC03-CPP. Avoid errors of addition |
| -Wformat | FIO00-CPP. Take care when creating format strings |
| -Winvalid-offsetof | EXP59-CPP. Use offsetof() on valid types and members |
| -Wunreachable-code | MSC07-CPP. Detect and remove dead code |