Rule M6-3-1 (required, implementation, automated)

The statement forming the body of a switch, while, do ... while or for statement shall be a compound statement. See MISRA C++ 2008 [7]