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