OLD | NEW |
(Empty) | |
| 1 --- |
| 2 # The syntax herein is for Clang 4, with opt-in support for Clang 5. |
| 3 |
| 4 Language: Cpp |
| 5 BasedOnStyle: Mozilla |
| 6 |
| 7 # _de facto_ style is no breaking for return types. |
| 8 # Clang 5 version |
| 9 AlwaysBreakAfterReturnType: None |
| 10 # Clang 4 version |
| 11 # Clang 4 documentation defect: It defines "AlwaysBreakAfterReturnType" and |
| 12 # states that "AlwaysBreakAfterDefinitionReturnType" is deprecated. Disregard |
| 13 # this; the line below is necessary for Clang 4 and the Clang 5 version need not |
| 14 # be commented out. |
| 15 AlwaysBreakAfterDefinitionReturnType: None |
| 16 |
| 17 # Long function definitions or calls should not become even longer. |
| 18 BinPackArguments: true |
| 19 BinPackParameters: true |
| 20 |
| 21 # Non-assignment operators appear at the beginning of line (after indent). |
| 22 BreakBeforeBinaryOperators: NonAssignment |
| 23 |
| 24 # General override: "Opening braces always go on their own line." |
| 25 BreakBeforeBraces: Allman |
| 26 |
| 27 # Don't treat commas specially within initializers. |
| 28 # Clang 5 version |
| 29 #BreakConstructorInitializers: BeforeColon |
| 30 # Clang 4 version |
| 31 BreakConstructorInitializersBeforeComma: false |
| 32 |
| 33 # Don't wrap long lines automatically. |
| 34 # If lines need to be wrapped, do so explicitly. |
| 35 ColumnLimit: 0 |
| 36 |
| 37 # Format braced lists like function calls. |
| 38 Cpp11BracedListStyle: true |
| 39 |
| 40 # Don't preserve excess vertical whitespace. |
| 41 KeepEmptyLinesAtTheStartOfBlocks: false |
| 42 |
| 43 # C++ override. "Indent namespace bodies." |
| 44 NamespaceIndentation: All |
| 45 |
| 46 # Use modern C++. Argument stands for C++11, C++14, etc. |
| 47 Standard: Cpp11 |
| 48 ... |
OLD | NEW |