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

Rule:  STY#024Checked automatically with code checker

Synopsis:The name of an #include guard shall contain at least the name of the header file.
Language:C++
Severity Level:10
Category:Style


Description:

If projects have files with the same name in different directories, it is not possible to include both files. The guard of an internal header file must have an additional underscore appended at the end. This is to prevent duplicate guard names when a certain interface is specified by both an internal and external header file that have the same name. See also [ORG#001].



Literature References:
ISC++ Style A.7