-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy path.clang-format
More file actions
31 lines (31 loc) · 910 Bytes
/
.clang-format
File metadata and controls
31 lines (31 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# This is "close" to correct but has a number of bugs that prevent
# using it on the source tree.
Language: Cpp
BasedOnStyle: Google
AccessModifierOffset: -2
AlignOperands: false
AllowAllArgumentsOnNextLine: false
AllowAllConstructorInitializersOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterReturnType: TopLevel
BinPackArguments: true
# fails
BinPackParameters: AlwaysOnePerLine
BraceWrapping:
AfterClass: true
AfterStruct: true
AfterFunction: true
BeforeElse: true
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeBraces: Custom
# fails if all initializers fit on one line
BreakConstructorInitializers: AfterColon
ColumnLimit: 85
# fails
ConstructorInitializerIndentWidth: 2
IncludeBlocks: Preserve
PackConstructorInitializers: Never
PointerAlignment: Right
SortIncludes: Never