Synopsis: | Avoid unnecessary inclusion |
Language: | C++ |
Severity Level: | 6 |
Category: | Code Organization |
Description: |
Do not include any header files that are not used by the including file. Consider to use "compilation firewalls" such as abstract base classes and the so-called "pimpl" programming idiom to reduce unnecessary compile-time coupling (see [ORG#004]). Consider to use forward declarations of incomplete types. These declarations shall then be localized in the " |