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

Category: NON-LANGUAGE ISSUES

Synopsis:


Description:

Coding Rules

NameCheckedSynopsis
A.2.4#1 Checked automatically with code checker Only one identifier shall be declared on each source line.
A.2.5#1 Checked automatically with code checker Only one statement shall appear on each source line.
A.2.5#2 Checked automatically with code checker All control statements shall be fully brace enclosed.
A.2.5#3 A consistent style of indentation should be adopted
A.2.5#4 Braces should be indented to the same level as the control statement with which they are associated
A.3.1#2 Checked automatically with code checker Every header file shall use #ifndef .. #endif to prevent its body being #included multiple times.