Cpp Coding Standards/HEADERS/IncPCH
From Apache OpenOffice Wiki
Precompiled Headers (IncPCH)
- The first statement in each cxx files should be the inclusion of precompiled headers. There must be no other includes, no definitions and no include guards around the include statement. Forget this for a new file and you break the build.
- Assume the precompiled header file is empty and include all your headers normally.
#include "precompiled_foo.hxx" // May or may not contain includes for Foo.hxx and Bar.hxx #include "Foo.hxx" #include "Bar.hxx"