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

Rule:  6.2.2.cChecked automatically with code checker

Synopsis:A variable declaration with storage class static shall have a scope limited to the source file.
Language:C
Severity Level:4
Category:Concepts


Description:

Justification

When the variable is not defined in the source file but in a header file, you would get separate instances of the variable; one for each translation unit.