Inspectopedia
 
2024.3

Statement with empty body

Warning
Code Style
Last modified: 03 December 2024

Reports if, while, do or for statements with empty bodies. While occasionally intended, this construction is confusing, and often the result of a typo.

Example: