diff options
author | Nick Renieris <makren67@gmail.com> | 2018-09-29 10:12:30 +0300 |
---|---|---|
committer | Nick Renieris <makren67@gmail.com> | 2018-09-29 10:12:30 +0300 |
commit | c736b6a7a4485d6a1a86d7c6518569c60f7fc096 (patch) | |
tree | 851ff56fbc2be256f5febdacc7216560eb915953 /docs/CODE_GUIDELINES.md | |
parent | 58fb6ae0d054d823e59e31be8555837e5655b1d8 (diff) |
[docs] Add initializer list whitespace convention in Code Guidelines
Diffstat (limited to 'docs/CODE_GUIDELINES.md')
-rw-r--r-- | docs/CODE_GUIDELINES.md | 4 |
1 files changed, 4 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)** |