summaryrefslogtreecommitdiffstats
path: root/CodingStyle
diff options
context:
space:
mode:
Diffstat (limited to 'CodingStyle')
-rw-r--r--CodingStyle6
1 files changed, 6 insertions, 0 deletions
diff --git a/CodingStyle b/CodingStyle
index 659298f0e5a..019d23c7703 100644
--- a/CodingStyle
+++ b/CodingStyle
@@ -108,6 +108,12 @@ by section.
portability since `#pragma once` is widely supported and is known
to work on GCC and Clang.
+* Header Files -> Forward declarations:
+
+ Forward declarations of structs, unions, classes and enums can be
+ used to reduce header dependencies. This speeds up compile times
+ because the compiler has to process less code.
+
The following guidelines have not been followed in the legacy code,
but are worth mentioning and should be followed strictly for new code: