From: kgv Date: Fri, 13 Oct 2017 15:49:18 +0000 (+0300) Subject: 0029228: Coding Rules - define rule for avoiding header inclusion list pollution X-Git-Tag: V7_3_0_beta~211 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=744d9c0d2280ccbbbce824d860f46e4238ca6bc3;p=occt-copy.git 0029228: Coding Rules - define rule for avoiding header inclusion list pollution --- diff --git a/dox/dev_guides/contribution/coding_rules.md b/dox/dev_guides/contribution/coding_rules.md index 6c76bb8f1e..234558b083 100644 --- a/dox/dev_guides/contribution/coding_rules.md +++ b/dox/dev_guides/contribution/coding_rules.md @@ -479,6 +479,8 @@ Inclusion of class header on top verifies consistency of the header (e.g. that h An exception to the rule is ordering system headers generating a macros declaration conflicts (like "windows.h" or "X11/Xlib.h") - these headers should be placed in the way solving the conflict. +The source or header file should include only minimal set of headers necessary for compilation, without duplicates (considering nested includes). + ~~~~~{.cpp} // the header file of implemented class #include