Difference between revisions of "Cpp Coding Standards/HEADERS"

From Apache OpenOffice Wiki
Jump to: navigation, search
 
m
Line 2: Line 2:
 
What to do and do not with header files.
 
What to do and do not with header files.
 
----
 
----
=== Rules ===
+
=== Summary ===
 
+
 
==== SelfSufficient ====
 
==== SelfSufficient ====
 
Make headers include everything they need themselves.
 
Make headers include everything they need themselves.
Line 9: Line 8:
 
==== IncludeDirectly ====
 
==== IncludeDirectly ====
 
Include the header files for all types you need directly, not via another file.
 
Include the header files for all types you need directly, not via another file.
 +
 +
----
 +
=== Explanations ===
  
 
----
 
----
 
[[Category:Coding Standards]]
 
[[Category:Coding Standards]]

Revision as of 18:15, 27 November 2006

Header Files

What to do and do not with header files.


Summary

SelfSufficient

Make headers include everything they need themselves.

IncludeDirectly

Include the header files for all types you need directly, not via another file.


Explanations


Personal tools