1 # works with clang-format-3.7
3 # Most controversial fields are UseTab, IndentWidth, ContinuationIndentWidth, ColumnLimit, BreakBeforeBraces
6 AccessModifierOffset: 0
7 AlignAfterOpenBracket: true
8 AlignConsecutiveAssignments: false
9 #AlignConsecutiveDeclarations: false
10 AlignEscapedNewlinesLeft: true
12 AlignTrailingComments: true
13 AllowAllParametersOfDeclarationOnNextLine: false
14 AllowShortBlocksOnASingleLine: false
15 AllowShortCaseLabelsOnASingleLine: false
16 AllowShortFunctionsOnASingleLine: Empty
17 AllowShortIfStatementsOnASingleLine: false
18 AllowShortLoopsOnASingleLine: false
19 AlwaysBreakAfterDefinitionReturnType: None
20 AlwaysBreakBeforeMultilineStrings: false
21 AlwaysBreakTemplateDeclarations: false
22 BinPackArguments: false
23 BinPackParameters: false
24 BreakBeforeBinaryOperators: None
25 BreakBeforeBraces: Linux
26 BreakBeforeTernaryOperators: true
27 BreakConstructorInitializersBeforeComma: false
30 ConstructorInitializerAllOnOneLineOrOnePerLine: true
31 ConstructorInitializerIndentWidth: 0
32 ContinuationIndentWidth: 4
33 Cpp11BracedListStyle: true
34 DerivePointerAlignment: false
35 DerivePointerBinding: false
37 ForEachMacros: ['foreach']
38 IndentCaseLabels: false
39 IndentFunctionDeclarationAfterType: false
41 IndentWrappedFunctionNames: false
43 MaxEmptyLinesToKeep: 1
44 NamespaceIndentation: None
45 ObjCSpaceAfterProperty: true
46 ObjCSpaceBeforeProtocolList: true
47 PenaltyBreakBeforeFirstCallParameter: 1000
48 PenaltyBreakComment: 100
49 PenaltyBreakFirstLessLess: 0
50 PenaltyBreakString: 100
51 PenaltyExcessCharacter: 100
52 PenaltyReturnTypeOnItsOwnLine: 2000
53 PointerAlignment: Right
54 SpaceAfterCStyleCast: false
55 SpaceBeforeAssignmentOperators: true
56 SpaceBeforeParens: ControlStatements
57 SpaceInEmptyParentheses: false
58 SpacesBeforeTrailingComments: 1
60 SpacesInCStyleCastParentheses: false
61 SpacesInContainerLiterals: false
62 SpacesInParentheses: false
63 SpacesInSquareBrackets: false