@ -17,16 +17,16 @@ For programming languages other than C++ (e.g. JavaScript) used in this reposito
@@ -17,16 +17,16 @@ For programming languages other than C++ (e.g. JavaScript) used in this reposito
* [f. Acceptable conditions to omit braces](#f-acceptable-conditions-to-omit-braces)
UTF-8 and Unix-like line ending (LF). Unless some platform specific files need other encodings/line endings.
### 4. Initialization lists. ###
### 4. Initialization lists ###
Initialization lists should be vertical. This will allow for more easily readable diffs. The initialization colon should be indented and in its own line along with first argument. The rest of the arguments should be indented too and have the comma prepended.
```c++
myClass::myClass(int a, int b, int c, int d)
@ -207,7 +207,7 @@ myClass::myClass(int a, int b, int c, int d)
@@ -207,7 +207,7 @@ myClass::myClass(int a, int b, int c, int d)
}
```
### 5. Enums. ###
### 5. Enums ###
Enums should be vertical. This will allow for more easily readable diffs. The members should be indented.
```c++
enum Days
@ -222,7 +222,7 @@ enum Days
@@ -222,7 +222,7 @@ enum Days
};
```
### 6. Names. ###
### 6. Names ###
All names should be camelCased.
#### a. Type names and namespaces ####
@ -256,7 +256,7 @@ class MyClass
@@ -256,7 +256,7 @@ class MyClass
}
```
### 7. Header inclusion order. ###
### 7. Header inclusion order ###
The headers should be placed in the following group order: