Cpp Coding Standards/HEADERS/IncPCH

From Apache OpenOffice Wiki
< Cpp Coding Standards‎ | HEADERS
Revision as of 16:33, 22 May 2007 by Np (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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"
Personal tools