Back to Cppcheck

Severities

gui/help/severities.html

2.20.11.1 KB
Original Source

Severities

error

when code is executed there is some bad behavior (undefined behavior, leak)

warning

when code is executed there might be undefined behavior

style

point out possible mistakes, and suggest more defensive programming. Examples:

  • unused code/variables/functions
  • conditions that are always true/false
  • constness
  • operator precedence

performance

Suggestions for making the code faster. These suggestions are only based on common knowledge. It is not certain you'll get any measurable difference in speed by fixing these messages.

portability

portability warnings. Implementation defined behavior. 64-bit portability. Some undefined behavior that probably works "as you want". etc.

information

Configuration problems. If you get such output then your code is ok but your cppcheck configuration could be improved.