aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorNick Renieris <makren67@gmail.com>2018-09-29 10:12:30 +0300
committerNick Renieris <makren67@gmail.com>2018-09-29 10:12:30 +0300
commitc736b6a7a4485d6a1a86d7c6518569c60f7fc096 (patch)
tree851ff56fbc2be256f5febdacc7216560eb915953 /docs
parent58fb6ae0d054d823e59e31be8555837e5655b1d8 (diff)
[docs] Add initializer list whitespace convention in Code Guidelines
Diffstat (limited to 'docs')
-rw-r--r--docs/CODE_GUIDELINES.md4
-rw-r--r--docs/doxygen/CODING_GUIDELINES.dox6
2 files changed, 10 insertions, 0 deletions
diff --git a/docs/CODE_GUIDELINES.md b/docs/CODE_GUIDELINES.md
index b81d8c43b6..5fd90e56e0 100644
--- a/docs/CODE_GUIDELINES.md
+++ b/docs/CODE_GUIDELINES.md
@@ -173,6 +173,10 @@ for (int i = 0; i < x; ++i)
doSomething(e);
doSomething(f);
```
+Initializer lists have spaces between elements, but no surrounding spaces.
+```cpp
+const char *aStringArray[] = {"one", "two", "three"};
+```
**[back to top](#table-of-contents)**
diff --git a/docs/doxygen/CODING_GUIDELINES.dox b/docs/doxygen/CODING_GUIDELINES.dox
index df9843bdff..bd22c1b168 100644
--- a/docs/doxygen/CODING_GUIDELINES.dox
+++ b/docs/doxygen/CODING_GUIDELINES.dox
@@ -165,6 +165,12 @@ doSomething(e);
doSomething(f);
~~~~~~~~~~~~~
+Initializer lists have spaces between elements, but no surrounding spaces.
+
+~~~~~~~~~~~~~
+const char *aStringArray[] = {"one", "two", "three"};
+~~~~~~~~~~~~~
+
--------------------------------------------------------------------------------
\subsection code_guidelines_3_1 No vertical alignment