Synopsis: | Each file shall be self-contained |
Language: | C++ |
Severity Level: | 3 |
Category: | Code Organization |
Description: |
This rule means that a file should be compilable in itself. For header files this is not enforced by the compiler. So if the file is a header file, including this file in an empty source file should not lead to compiler errors. |