Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: new rule

...

Code Block
bgColor#ccccff
if (a == b) {
  /* ... */
}

Automated Detection

...

Tool

...

Version

...

Checker

...

Description

...

Section

Klocwork

...

Related Guidelines

CERT C Secure Coding Standard: EXP15-C. Do not place a semicolon on the same line as an if, for, or while statement

...

Section

SEMICOL

...

 

Related Guidelines

ISO/IEC TR 24772 "KOA Likely Incorrect Expressions"

MITRE CWE: CWE-480, "Use of Incorrect Operator"

Bibliography

Wiki Markup
\[Hatton 1995\] Section 2.7.2, "Errors of omission and addition"

...