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

Category: Static Objects

Synopsis:Items at File Scope


Description:
This chapter concerns static objects. Static objects are global objects, static data members, file scope objects and local variables declared static.

Coding Rules

NameCheckedSynopsis
STA#001 If a variable is not intended to change, make it a constant
STA#002 Checked automatically with code checker Objects with static storage duration should be declared only within the scope of a class, function, or unnamed namespace
STA#003 Document how objects with class or global scope are initialized