Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Parasoft Jtest 2024.2

...

Placing a semicolon immediately following an if, for, or while condition may result in unexpected behavior.

Automated Detection

ToolVersionCheckerDescription
Parasoft Jtest
Include Page
Parasoft_V
Parasoft_V
CERT.MSC51.NSIFDo not place a semicolon immediately after an if, for, or while condition
PVS-Studio

Include Page
PVS-Studio_V
PVS-Studio_V

V6063
SonarQube
Include Page
SonarQube_V
SonarQube_V
EmptyStatementUsageCheck
 

 



Bibliography

[Hatton 1995]

§2.7.2, "Errors of Omission and Addition"

...


...