Versions Compared

Key

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

...

Checker

Guideline

ElseIfWithoutElseMSC01-CPP. Strive for logical completeness
FunctionEllipsisDCL50-CPP. Do not define a C-style variadic function
IncAndDecMixedWithOtherOperatorsEXP50-CPP. Do not depend on the order of evaluation for side effects
NonEmptyCaseWithoutBreakMSC18-CPP. Finish every set of statements associated with a case label with a break statement
S1036MSC20-CPP. Do not use a switch statement to transfer control into a complex block
S1044ERR61-CPP. Catch exceptions by lvalue reference
S1116MSC12-CPP. Detect and remove code that has no effect
S1235OOP52-CPP. Do not delete a polymorphic object without a virtual destructor
S1265DCL54-CPP. Overload allocation and deallocation functions as a pair in the same scope
S1656MSC12-CPP. Detect and remove code that has no effect
S1699OOP50-CPP. Do not invoke virtual functions from constructors or destructors
S1751MSC07-CPP. Detect and remove dead code
S1751MSC12-CPP. Detect and remove code that has no effect
S1762MSC00-CPP. Compile cleanly at high warning levels
S1763MSC07-CPP. Detect and remove dead code
S1764MSC12-CPP. Detect and remove code that has no effect
S1862MSC12-CPP. Detect and remove code that has no effect
S3229OOP53-CPP. Write constructor member initializers in the canonical order
S3468DCL53-CPP. Do not write syntactically ambiguous declarations
S3470MSC53-CPP. Do not modify the standard namespaces
S935MSC54-CPP. Value-returning functions must return a value from all exit paths
S935MSC55-CPP. Do not return from a function declared [[noreturn]]
S973MSC00-CPP. Compile cleanly at high warning levels
S978DCL51-CPP. Do not declare or define a reserved identifier
SwitchWithoutDefaultMSC01-CPP. Strive for logical completeness
TrigraphUsagePRE07-CPP. Avoid using repeated question marks
UnnamedNamespaceInHeaderDCL58-CPP. Do not define an unnamed namespace in a header file

>