1*35238bceSAndroid Build Coastguard Worker# The style used for all options not specifically set in the configuration. 2*35238bceSAndroid Build Coastguard WorkerBasedOnStyle: LLVM 3*35238bceSAndroid Build Coastguard Worker 4*35238bceSAndroid Build Coastguard Worker# The extra indent or outdent of access modifiers, e.g. public:. 5*35238bceSAndroid Build Coastguard WorkerAccessModifierOffset: -4 6*35238bceSAndroid Build Coastguard Worker 7*35238bceSAndroid Build Coastguard Worker# Aligns escaped newlines as far left as possible 8*35238bceSAndroid Build Coastguard WorkerAlignEscapedNewlines: Left 9*35238bceSAndroid Build Coastguard Worker 10*35238bceSAndroid Build Coastguard Worker# This will align the assignment operators of consecutive lines. 11*35238bceSAndroid Build Coastguard WorkerAlignConsecutiveAssignments: Consecutive 12*35238bceSAndroid Build Coastguard Worker 13*35238bceSAndroid Build Coastguard Worker# Do not align the declaration names. 14*35238bceSAndroid Build Coastguard WorkerAlignConsecutiveDeclarations: None 15*35238bceSAndroid Build Coastguard Worker 16*35238bceSAndroid Build Coastguard Worker# Align the bitfield in declarations 17*35238bceSAndroid Build Coastguard WorkerAlignConsecutiveBitFields: Consecutive 18*35238bceSAndroid Build Coastguard Worker 19*35238bceSAndroid Build Coastguard Worker# If true, aligns trailing comments. 20*35238bceSAndroid Build Coastguard WorkerAlignTrailingComments: true 21*35238bceSAndroid Build Coastguard Worker 22*35238bceSAndroid Build Coastguard Worker# Align operands when the expression is broken in multiple lines. 23*35238bceSAndroid Build Coastguard WorkerAlignOperands: Align 24*35238bceSAndroid Build Coastguard Worker 25*35238bceSAndroid Build Coastguard Worker# Allow putting all parameters of a function declaration onto the next line even if BinPackParameters is false. 26*35238bceSAndroid Build Coastguard WorkerAllowAllParametersOfDeclarationOnNextLine: false 27*35238bceSAndroid Build Coastguard Worker 28*35238bceSAndroid Build Coastguard Worker# Allows contracting simple braced statements to a single line. 29*35238bceSAndroid Build Coastguard WorkerAllowShortBlocksOnASingleLine: false 30*35238bceSAndroid Build Coastguard Worker 31*35238bceSAndroid Build Coastguard Worker# If true, short case labels will be contracted to a single line. 32*35238bceSAndroid Build Coastguard WorkerAllowShortCaseLabelsOnASingleLine: false 33*35238bceSAndroid Build Coastguard Worker 34*35238bceSAndroid Build Coastguard Worker# Dependent on the value, int f() { return 0; } can be put on a single line. Possible values: None, Inline, All. 35*35238bceSAndroid Build Coastguard WorkerAllowShortFunctionsOnASingleLine: None 36*35238bceSAndroid Build Coastguard Worker 37*35238bceSAndroid Build Coastguard Worker# If true, if (a) return; can be put on a single line. 38*35238bceSAndroid Build Coastguard WorkerAllowShortIfStatementsOnASingleLine: false 39*35238bceSAndroid Build Coastguard Worker 40*35238bceSAndroid Build Coastguard Worker# If true, while (true) continue; can be put on a single line. 41*35238bceSAndroid Build Coastguard WorkerAllowShortLoopsOnASingleLine: false 42*35238bceSAndroid Build Coastguard Worker 43*35238bceSAndroid Build Coastguard Worker# If true, always break after function definition return types. 44*35238bceSAndroid Build Coastguard WorkerAlwaysBreakAfterDefinitionReturnType: None 45*35238bceSAndroid Build Coastguard WorkerAlwaysBreakAfterReturnType: None 46*35238bceSAndroid Build Coastguard Worker 47*35238bceSAndroid Build Coastguard Worker# If true, always break before multiline string literals. 48*35238bceSAndroid Build Coastguard WorkerAlwaysBreakBeforeMultilineStrings: false 49*35238bceSAndroid Build Coastguard Worker 50*35238bceSAndroid Build Coastguard Worker# If true, always break after the template<...> of a template declaration. 51*35238bceSAndroid Build Coastguard WorkerAlwaysBreakTemplateDeclarations: Yes 52*35238bceSAndroid Build Coastguard Worker 53*35238bceSAndroid Build Coastguard Worker# If false, a function call's arguments will either be all on the same line or will have one line each. 54*35238bceSAndroid Build Coastguard WorkerBinPackArguments: true 55*35238bceSAndroid Build Coastguard Worker 56*35238bceSAndroid Build Coastguard Worker# If false, a function declaration's or function definition's parameters will either all be on the same line 57*35238bceSAndroid Build Coastguard Worker# or will have one line each. 58*35238bceSAndroid Build Coastguard WorkerBinPackParameters: true 59*35238bceSAndroid Build Coastguard Worker 60*35238bceSAndroid Build Coastguard Worker# The way to wrap binary operators. Possible values: None, NonAssignment, All. 61*35238bceSAndroid Build Coastguard WorkerBreakBeforeBinaryOperators: None 62*35238bceSAndroid Build Coastguard Worker 63*35238bceSAndroid Build Coastguard Worker# The brace breaking style to use. Possible values: Attach, Linux, Stroustrup, Allman, GNU. 64*35238bceSAndroid Build Coastguard WorkerBreakBeforeBraces: Allman 65*35238bceSAndroid Build Coastguard Worker 66*35238bceSAndroid Build Coastguard Worker# If true, ternary operators will be placed after line breaks. 67*35238bceSAndroid Build Coastguard WorkerBreakBeforeTernaryOperators: false 68*35238bceSAndroid Build Coastguard Worker 69*35238bceSAndroid Build Coastguard Worker# Always break constructor initializers before commas and align the commas with the colon. 70*35238bceSAndroid Build Coastguard WorkerBreakConstructorInitializers: BeforeComma 71*35238bceSAndroid Build Coastguard Worker 72*35238bceSAndroid Build Coastguard Worker# The column limit. A column limit of 0 means that there is no column limit. 73*35238bceSAndroid Build Coastguard WorkerColumnLimit: 120 74*35238bceSAndroid Build Coastguard Worker 75*35238bceSAndroid Build Coastguard Worker# A regular expression that describes comments with special meaning, which should not be split into lines or otherwise changed. 76*35238bceSAndroid Build Coastguard WorkerCommentPragmas: '^ *' 77*35238bceSAndroid Build Coastguard Worker 78*35238bceSAndroid Build Coastguard Worker# If the constructor initializers don't fit on a line, put each initializer on its own line. 79*35238bceSAndroid Build Coastguard WorkerPackConstructorInitializers: CurrentLine 80*35238bceSAndroid Build Coastguard Worker 81*35238bceSAndroid Build Coastguard Worker# The number of characters to use for indentation of constructor initializer lists. 82*35238bceSAndroid Build Coastguard WorkerConstructorInitializerIndentWidth: 4 83*35238bceSAndroid Build Coastguard Worker 84*35238bceSAndroid Build Coastguard Worker# Indent width for line continuations. 85*35238bceSAndroid Build Coastguard WorkerContinuationIndentWidth: 4 86*35238bceSAndroid Build Coastguard Worker 87*35238bceSAndroid Build Coastguard Worker# If true, format braced lists as best suited for C++11 braced lists. 88*35238bceSAndroid Build Coastguard WorkerCpp11BracedListStyle: true 89*35238bceSAndroid Build Coastguard Worker 90*35238bceSAndroid Build Coastguard Worker# Disables formatting at all. 91*35238bceSAndroid Build Coastguard WorkerDisableFormat: false 92*35238bceSAndroid Build Coastguard Worker 93*35238bceSAndroid Build Coastguard Worker# Indent case labels one level from the switch statement. 94*35238bceSAndroid Build Coastguard Worker# When false, use the same indentation level as for the switch statement. 95*35238bceSAndroid Build Coastguard Worker# Switch statement body is always indented one level more than case labels. 96*35238bceSAndroid Build Coastguard WorkerIndentCaseLabels: false 97*35238bceSAndroid Build Coastguard Worker 98*35238bceSAndroid Build Coastguard Worker# The number of columns to use for indentation. 99*35238bceSAndroid Build Coastguard WorkerIndentWidth: 4 100*35238bceSAndroid Build Coastguard Worker 101*35238bceSAndroid Build Coastguard Worker# Indent if a function definition or declaration is wrapped after the type. 102*35238bceSAndroid Build Coastguard WorkerIndentWrappedFunctionNames: false 103*35238bceSAndroid Build Coastguard Worker 104*35238bceSAndroid Build Coastguard Worker# If true, empty lines at the start of blocks are kept. 105*35238bceSAndroid Build Coastguard WorkerKeepEmptyLinesAtTheStartOfBlocks: true 106*35238bceSAndroid Build Coastguard Worker 107*35238bceSAndroid Build Coastguard Worker# Language, this format style is targeted at. Possible values: None, Cpp, Java, JavaScript, Proto. 108*35238bceSAndroid Build Coastguard WorkerLanguage: Cpp 109*35238bceSAndroid Build Coastguard Worker 110*35238bceSAndroid Build Coastguard Worker# The maximum number of consecutive empty lines to keep. 111*35238bceSAndroid Build Coastguard WorkerMaxEmptyLinesToKeep: 1 112*35238bceSAndroid Build Coastguard Worker 113*35238bceSAndroid Build Coastguard Worker# The indentation used for namespaces. Possible values: None, Inner, All. 114*35238bceSAndroid Build Coastguard WorkerNamespaceIndentation: None 115*35238bceSAndroid Build Coastguard Worker 116*35238bceSAndroid Build Coastguard Worker# The penalty for breaking a function call after "call(". 117*35238bceSAndroid Build Coastguard WorkerPenaltyBreakBeforeFirstCallParameter: 19 118*35238bceSAndroid Build Coastguard Worker 119*35238bceSAndroid Build Coastguard Worker# The penalty for each line break introduced inside a comment. 120*35238bceSAndroid Build Coastguard WorkerPenaltyBreakComment: 300 121*35238bceSAndroid Build Coastguard Worker 122*35238bceSAndroid Build Coastguard Worker# The penalty for breaking before the first <<. 123*35238bceSAndroid Build Coastguard WorkerPenaltyBreakFirstLessLess: 400 124*35238bceSAndroid Build Coastguard Worker 125*35238bceSAndroid Build Coastguard Worker# The penalty for each line break introduced inside a string literal. 126*35238bceSAndroid Build Coastguard WorkerPenaltyBreakString: 1000 127*35238bceSAndroid Build Coastguard Worker 128*35238bceSAndroid Build Coastguard Worker# The penalty for each character outside of the column limit. 129*35238bceSAndroid Build Coastguard WorkerPenaltyExcessCharacter: 1000000 130*35238bceSAndroid Build Coastguard Worker 131*35238bceSAndroid Build Coastguard Worker# Penalty for putting the return type of a function onto its own line. 132*35238bceSAndroid Build Coastguard WorkerPenaltyReturnTypeOnItsOwnLine: 1000000000 133*35238bceSAndroid Build Coastguard Worker 134*35238bceSAndroid Build Coastguard Worker# Pointer and reference alignment style. Possible values: Left, Right, Middle. 135*35238bceSAndroid Build Coastguard WorkerPointerAlignment: Right 136*35238bceSAndroid Build Coastguard Worker 137*35238bceSAndroid Build Coastguard Worker# Do not sort includes, many generated headers don't appropriately include what they rely on. 138*35238bceSAndroid Build Coastguard WorkerSortIncludes: Never 139*35238bceSAndroid Build Coastguard Worker 140*35238bceSAndroid Build Coastguard Worker# If true, a space may be inserted after C style casts. 141*35238bceSAndroid Build Coastguard WorkerSpaceAfterCStyleCast: false 142*35238bceSAndroid Build Coastguard Worker 143*35238bceSAndroid Build Coastguard Worker# If false, spaces will be removed before assignment operators. 144*35238bceSAndroid Build Coastguard WorkerSpaceBeforeAssignmentOperators: true 145*35238bceSAndroid Build Coastguard Worker 146*35238bceSAndroid Build Coastguard Worker# Defines in which cases to put a space before opening parentheses. Possible values: Never, ControlStatements, Always. 147*35238bceSAndroid Build Coastguard WorkerSpaceBeforeParens: ControlStatements 148*35238bceSAndroid Build Coastguard Worker 149*35238bceSAndroid Build Coastguard Worker# If true, spaces may be inserted into '()'. 150*35238bceSAndroid Build Coastguard WorkerSpaceInEmptyParentheses: false 151*35238bceSAndroid Build Coastguard Worker 152*35238bceSAndroid Build Coastguard Worker# The number of spaces before trailing line comments (// - comments). 153*35238bceSAndroid Build Coastguard WorkerSpacesBeforeTrailingComments: 1 154*35238bceSAndroid Build Coastguard Worker 155*35238bceSAndroid Build Coastguard Worker# If true, spaces will be inserted after '<' and before '>' in template argument lists. 156*35238bceSAndroid Build Coastguard WorkerSpacesInAngles: false 157*35238bceSAndroid Build Coastguard Worker 158*35238bceSAndroid Build Coastguard Worker# If true, spaces may be inserted into C style casts. 159*35238bceSAndroid Build Coastguard WorkerSpacesInCStyleCastParentheses: false 160*35238bceSAndroid Build Coastguard Worker 161*35238bceSAndroid Build Coastguard Worker# If true, spaces are inserted inside container literals (e.g. ObjC and Javascript array and dict literals). 162*35238bceSAndroid Build Coastguard WorkerSpacesInContainerLiterals: false 163*35238bceSAndroid Build Coastguard Worker 164*35238bceSAndroid Build Coastguard Worker# If true, spaces will be inserted after '(' and before ')'. 165*35238bceSAndroid Build Coastguard WorkerSpacesInParentheses: false 166*35238bceSAndroid Build Coastguard Worker 167*35238bceSAndroid Build Coastguard Worker# If true, spaces will be inserted after '[' and before ']'. 168*35238bceSAndroid Build Coastguard WorkerSpacesInSquareBrackets: false 169*35238bceSAndroid Build Coastguard Worker 170*35238bceSAndroid Build Coastguard Worker# Format compatible with this standard, e.g. use A<A<int> > instead of A<A<int>> for LS_Cpp03. Possible values: Cpp03, Cpp11, Auto. 171*35238bceSAndroid Build Coastguard WorkerStandard: Cpp11 172*35238bceSAndroid Build Coastguard Worker 173*35238bceSAndroid Build Coastguard Worker# The number of columns used for tab stops. 174*35238bceSAndroid Build Coastguard WorkerTabWidth: 4 175*35238bceSAndroid Build Coastguard Worker 176*35238bceSAndroid Build Coastguard Worker# The way to use tab characters in the resulting file. Possible values: Never, ForIndentation, Always. 177*35238bceSAndroid Build Coastguard WorkerUseTab: Never 178*35238bceSAndroid Build Coastguard Worker 179*35238bceSAndroid Build Coastguard Worker# Support formatting other languages too, mostly using default configs 180*35238bceSAndroid Build Coastguard Worker--- 181*35238bceSAndroid Build Coastguard WorkerLanguage: Java 182*35238bceSAndroid Build Coastguard WorkerIndentWidth: 4 183*35238bceSAndroid Build Coastguard Worker--- 184*35238bceSAndroid Build Coastguard WorkerLanguage: Json 185*35238bceSAndroid Build Coastguard WorkerIndentWidth: 4 186*35238bceSAndroid Build Coastguard Worker--- 187*35238bceSAndroid Build Coastguard WorkerLanguage: ObjC 188*35238bceSAndroid Build Coastguard WorkerIndentWidth: 4 189*35238bceSAndroid Build Coastguard WorkerBreakBeforeBraces: Allman 190