aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/CODING_GUIDELINES.dox
diff options
context:
space:
mode:
Diffstat (limited to 'docs/doxygen/CODING_GUIDELINES.dox')
-rw-r--r--docs/doxygen/CODING_GUIDELINES.dox11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/doxygen/CODING_GUIDELINES.dox b/docs/doxygen/CODING_GUIDELINES.dox
index f1dde476b5..df9843bdff 100644
--- a/docs/doxygen/CODING_GUIDELINES.dox
+++ b/docs/doxygen/CODING_GUIDELINES.dox
@@ -394,4 +394,15 @@ for (auto& : var)
Use const auto& if there's no reason to modify the value.
+--------------------------------------------------------------------------------
+\subsection code_guidelines_6_5 default member initialization
+
+Use default member initialization instead of initializer lists or constructor assignments whenever it makes sense.
+~~~~~~~~~~~~~
+class Foo
+{
+ bool bar = false;
+};
+~~~~~~~~~~~~~
+
*/