master .clang-format
 1Language: Cpp
 2BasedOnStyle: LLVM
 3
 4IndentWidth: 2
 5TabWidth: 2
 6ContinuationIndentWidth: 4
 7UseTab: Never
 8IndentCaseLabels: true
 9IndentPPDirectives: None
10IndentWrappedFunctionNames: false
11NamespaceIndentation: None
12
13ColumnLimit: 100
14
15AlignAfterOpenBracket: BlockIndent
16AlignConsecutiveMacros: Consecutive
17AlignConsecutiveAssignments: Consecutive
18AlignConsecutiveDeclarations: Consecutive
19AlignEscapedNewlines: Right
20AlignOperands: Align
21AlignTrailingComments: true
22
23AllowAllArgumentsOnNextLine: true
24AllowAllParametersOfDeclarationOnNextLine: true
25BinPackArguments: false
26BinPackParameters: false
27
28AllowShortBlocksOnASingleLine: Empty
29AllowShortCaseLabelsOnASingleLine: false
30AllowShortFunctionsOnASingleLine: Empty
31AllowShortIfStatementsOnASingleLine: Never
32AllowShortLoopsOnASingleLine: false
33
34AlwaysBreakAfterDefinitionReturnType: TopLevel
35AlwaysBreakAfterReturnType: TopLevelDefinitions
36AlwaysBreakBeforeMultilineStrings: false
37
38BreakBeforeBraces: Custom
39BraceWrapping:
40  AfterCaseLabel: false
41  AfterClass: false
42  AfterControlStatement: Never
43  AfterEnum: false
44  AfterFunction: true
45  AfterNamespace: false
46  AfterObjCDeclaration: false
47  AfterStruct: false
48  AfterUnion: false
49  AfterExternBlock: false
50  BeforeCatch: false
51  BeforeElse: false
52  IndentBraces: false
53  SplitEmptyFunction: true
54  SplitEmptyRecord: true
55  SplitEmptyNamespace: true
56
57BreakBeforeBinaryOperators: NonAssignment
58BreakBeforeTernaryOperators: true
59BreakStringLiterals: true
60
61DerivePointerAlignment: false
62DisableFormat: false
63FixNamespaceComments: true
64IncludeBlocks: Preserve
65IncludeCategories:
66  - Regex: '^".*"'
67    Priority: 1
68  - Regex: '^<.*>'
69    Priority: 2
70KeepEmptyLinesAtTheStartOfBlocks: false
71MaxEmptyLinesToKeep: 1
72PointerAlignment: Right
73ReflowComments: true
74SortIncludes: CaseSensitive
75SortUsingDeclarations: true
76SpaceAfterCStyleCast: false
77SpaceBeforeAssignmentOperators: true
78SpaceBeforeParens: ControlStatements
79SpaceInEmptyParentheses: false
80SpacesBeforeTrailingComments: 1
81SpacesInAngles: false
82SpacesInContainerLiterals: false
83SpacesInCStyleCastParentheses: false
84SpacesInParentheses: false
85SpacesInSquareBrackets: false
86Standard: c++03