| 1 |
# The style used for all options not specifically set in the configuration. |
| 2 |
BasedOnStyle: LLVM |
| 3 |
|
| 4 |
# The extra indent or outdent of access modifiers, e.g. public:. |
| 5 |
AccessModifierOffset: -4 |
| 6 |
|
| 7 |
# If true, aligns escaped newlines as far left as possible. Otherwise puts them into the right-most column. |
| 8 |
AlignEscapedNewlinesLeft: true |
| 9 |
|
| 10 |
# If true, aligns trailing comments. |
| 11 |
AlignTrailingComments: false |
| 12 |
|
| 13 |
# Allow putting all parameters of a function declaration onto the next line even if BinPackParameters is false. |
| 14 |
AllowAllParametersOfDeclarationOnNextLine: false |
| 15 |
|
| 16 |
# Allows contracting simple braced statements to a single line. |
| 17 |
AllowShortBlocksOnASingleLine: false |
| 18 |
|
| 19 |
# If true, short case labels will be contracted to a single line. |
| 20 |
AllowShortCaseLabelsOnASingleLine: false |
| 21 |
|
| 22 |
# Dependent on the value, int f() { return 0; } can be put on a single line. Possible values: None, Inline, All. |
| 23 |
AllowShortFunctionsOnASingleLine: None |
| 24 |
|
| 25 |
# If true, if (a) return; can be put on a single line. |
| 26 |
AllowShortIfStatementsOnASingleLine: false |
| 27 |
|
| 28 |
# If true, while (true) continue; can be put on a single line. |
| 29 |
AllowShortLoopsOnASingleLine: false |
| 30 |
|
| 31 |
# If true, always break after function definition return types. |
| 32 |
AlwaysBreakAfterDefinitionReturnType: false |
| 33 |
|
| 34 |
# If true, always break before multiline string literals. |
| 35 |
AlwaysBreakBeforeMultilineStrings: false |
| 36 |
|
| 37 |
# If true, always break after the template<...> of a template declaration. |
| 38 |
AlwaysBreakTemplateDeclarations: true |
| 39 |
|
| 40 |
# If false, a function call's arguments will either be all on the same line or will have one line each. |
| 41 |
BinPackArguments: true |
| 42 |
|
| 43 |
# If false, a function declaration's or function definition's parameters will either all be on the same line |
| 44 |
# or will have one line each. |
| 45 |
BinPackParameters: true |
| 46 |
|
| 47 |
# The way to wrap binary operators. Possible values: None, NonAssignment, All. |
| 48 |
BreakBeforeBinaryOperators: None |
| 49 |
|
| 50 |
# The brace breaking style to use. Possible values: Attach, Linux, Stroustrup, Allman, GNU. |
| 51 |
BreakBeforeBraces: Allman |
| 52 |
|
| 53 |
# If true, ternary operators will be placed after line breaks. |
| 54 |
BreakBeforeTernaryOperators: false |
| 55 |
|
| 56 |
# Always break constructor initializers before commas and align the commas with the colon. |
| 57 |
BreakConstructorInitializersBeforeComma: true |
| 58 |
|
| 59 |
# The column limit. A column limit of 0 means that there is no column limit. |
| 60 |
ColumnLimit: 120 |
| 61 |
|
| 62 |
# A regular expression that describes comments with special meaning, which should not be split into lines or otherwise changed. |
| 63 |
CommentPragmas: '^ *' |
| 64 |
|
| 65 |
# If the constructor initializers don't fit on a line, put each initializer on its own line. |
| 66 |
ConstructorInitializerAllOnOneLineOrOnePerLine: false |
| 67 |
|
| 68 |
# The number of characters to use for indentation of constructor initializer lists. |
| 69 |
ConstructorInitializerIndentWidth: 4 |
| 70 |
|
| 71 |
# Indent width for line continuations. |
| 72 |
ContinuationIndentWidth: 4 |
| 73 |
|
| 74 |
# If true, format braced lists as best suited for C++11 braced lists. |
| 75 |
Cpp11BracedListStyle: false |
| 76 |
|
| 77 |
# Disables formatting at all. |
| 78 |
DisableFormat: false |
| 79 |
|
| 80 |
# A vector of macros that should be interpreted as foreach loops instead of as function calls. |
| 81 |
#ForEachMacros: '' |
| 82 |
|
| 83 |
# Indent case labels one level from the switch statement. |
| 84 |
# When false, use the same indentation level as for the switch statement. |
| 85 |
# Switch statement body is always indented one level more than case labels. |
| 86 |
IndentCaseLabels: false |
| 87 |
|
| 88 |
# The number of columns to use for indentation. |
| 89 |
IndentWidth: 4 |
| 90 |
|
| 91 |
# Indent if a function definition or declaration is wrapped after the type. |
| 92 |
IndentWrappedFunctionNames: false |
| 93 |
|
| 94 |
# If true, empty lines at the start of blocks are kept. |
| 95 |
KeepEmptyLinesAtTheStartOfBlocks: true |
| 96 |
|
| 97 |
# Language, this format style is targeted at. Possible values: None, Cpp, Java, JavaScript, Proto. |
| 98 |
Language: Cpp |
| 99 |
|
| 100 |
# The maximum number of consecutive empty lines to keep. |
| 101 |
MaxEmptyLinesToKeep: 1 |
| 102 |
|
| 103 |
# The indentation used for namespaces. Possible values: None, Inner, All. |
| 104 |
NamespaceIndentation: None |
| 105 |
|
| 106 |
# The penalty for breaking a function call after "call(". |
| 107 |
PenaltyBreakBeforeFirstCallParameter: 19 |
| 108 |
|
| 109 |
# The penalty for each line break introduced inside a comment. |
| 110 |
PenaltyBreakComment: 300 |
| 111 |
|
| 112 |
# The penalty for breaking before the first <<. |
| 113 |
PenaltyBreakFirstLessLess: 120 |
| 114 |
|
| 115 |
# The penalty for each line break introduced inside a string literal. |
| 116 |
PenaltyBreakString: 1000 |
| 117 |
|
| 118 |
# The penalty for each character outside of the column limit. |
| 119 |
PenaltyExcessCharacter: 1000000 |
| 120 |
|
| 121 |
# Penalty for putting the return type of a function onto its own line. |
| 122 |
PenaltyReturnTypeOnItsOwnLine: 1000000000 |
| 123 |
|
| 124 |
# Pointer and reference alignment style. Possible values: Left, Right, Middle. |
| 125 |
PointerAlignment: Right |
| 126 |
|
| 127 |
# If true, a space may be inserted after C style casts. |
| 128 |
SpaceAfterCStyleCast: false |
| 129 |
|
| 130 |
# If false, spaces will be removed before assignment operators. |
| 131 |
SpaceBeforeAssignmentOperators: true |
| 132 |
|
| 133 |
# Defines in which cases to put a space before opening parentheses. Possible values: Never, ControlStatements, Always. |
| 134 |
SpaceBeforeParens: ControlStatements |
| 135 |
|
| 136 |
# If true, spaces may be inserted into '()'. |
| 137 |
SpaceInEmptyParentheses: false |
| 138 |
|
| 139 |
# The number of spaces before trailing line comments (// - comments). |
| 140 |
SpacesBeforeTrailingComments: 1 |
| 141 |
|
| 142 |
# If true, spaces will be inserted after '<' and before '>' in template argument lists. |
| 143 |
SpacesInAngles: false |
| 144 |
|
| 145 |
# If true, spaces may be inserted into C style casts. |
| 146 |
SpacesInCStyleCastParentheses: false |
| 147 |
|
| 148 |
# If true, spaces are inserted inside container literals (e.g. ObjC and Javascript array and dict literals). |
| 149 |
SpacesInContainerLiterals: false |
| 150 |
|
| 151 |
# If true, spaces will be inserted after '(' and before ')'. |
| 152 |
SpacesInParentheses: false |
| 153 |
|
| 154 |
# If true, spaces will be inserted after '[' and befor']'. |
| 155 |
SpacesInSquareBrackets: false |
| 156 |
|
| 157 |
# Format compatible with this standard, e.g. use A<A<int> > instead of A<A<int>> for LS_Cpp03. Possible values: Cpp03, Cpp11, Auto. |
| 158 |
Standard: Cpp11 |
| 159 |
|
| 160 |
# The number of columns used for tab stops. |
| 161 |
TabWidth: 4 |
| 162 |
|
| 163 |
# The way to use tab characters in the resulting file. Possible values: Never, ForIndentation, Always. |
| 164 |
UseTab: ForIndentation |
| 165 |
|
| 166 |
# Do not reflow comments |
| 167 |
ReflowComments: false |