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

Category: EXTERNAL DECLARATIONS

Synopsis:


Description:

Coding Rules

NameCheckedSynopsis
10.1#1 Checked automatically with code checker Function return types must not use const or volatile.
10.1#2 Checked automatically with code checker A parameter must not have void type.
10.1#3 Checked automatically with code checker Identifiers must be given for all or none of the parameters in a function prototype declaration.
10.1#4 A function return expression must be compatible with its implicitly or explicitly defined type. If a function has a non-void return type, then it must contain only com-patible return statements
10.1#5 Checked automatically with code checker main() must have a defined type of int (void) or int (int, char *[]).
10.1#6 Checked automatically with code checker Explicit use of exit is not recommended.
10.1#7 Checked automatically with code checker No attempt must be made to use the result of a function returning void.
10.1#8 Checked automatically with code checker No const qualified void function of any kind is allowed.
10.1#9 Checked automatically with code checker Identifiers in function definition and declaration should be the same.
10.2#1 Checked automatically with code checker A function declared locally must have no storage-class specifier other than 'extern'.
10.2#2 Checked automatically with code checker Functions should not be declared locally.
10.2#3 Checked automatically with code checker An external identifier declaration after a previous external declaration must not have a different type.
10.2#4 All array types shall be complete by the end of the compilation unit