Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Version number:

Include Page
GCC_V
GCC_V

Checker

Guideline

EXP50-CPP. Do not depend on the order of evaluation for side effectsEXP17-CPP. Treat relational and equality operators as if they were nonassociativeEXP19-CPP. Do not perform assignments in conditional expressionsMSC04-CPP. Use comments consistently and in a readable fashionPRE07-CPP. Avoid using repeated question marksSTR08-CPP. Do not specify the bound of a character array initialized with a string literal(enabled byMSC03-CPP. Avoid errors of addition
) andMSC03-CPP. Avoid errors of addition
-WallMSC02-CPP. Avoid errors of omission
-WallMSC03-CPP. Avoid errors of addition
-WallMSC12-CPP. Detect and remove code that has no effect
-Wempty-bodyMSC03-CPP. Avoid errors of addition
-WextraMSC03-CPP. Avoid errors of addition
-WformatFIO00-CPP. Take care when creating format strings
-Winvalid-offsetofEXP59-CPP. Use offsetof() on valid types and members
-Wparentheses warns if a comparison like x<=y<=z appears. This warning is also enabled by -Wall.EXP17-CPP. Treat relational and equality operators as if they were nonassociative
-Wunreachable-codeMSC07-CPP. Detect and remove dead code
Can detect violation of this recommendation when the -Wtrigraphs flag is used.PRE07-CPP. Avoid using repeated question marks
Can detect violations of this recommendation when the -Wall flag is used???EXP19-CPP. Do not perform assignments in conditional expressions
Can detect violations of this rule when the -Wcomment flag is used.MSC04-CPP. Use comments consistently and in a readable fashion
Can detect violations of this rule when the -Wsequence-point flag is usedEXP50-CPP. Do not depend on the order of evaluation for side effects
Will detect character arrays initialized with string literals that are too long to fit in the array.STR08-CPP. Do not specify the bound of a character array initialized with a string literal

>