TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
C++ Coding Standard
Search

Rule:  STY#031Checked automatically with code checker

This rule is Obsolete
Synopsis:Switch labels and statements should be on seperate lines
Language:C++
Severity Level:9
Category:Style


Description:

Example:

switch (j)	
{
case 0: i++;  // multiple statements per line
        break;
case 1: case 2: // multiple labels per line
        break;
default: break; // break is also treated as a statement
}