-
Notifications
You must be signed in to change notification settings - Fork 1
/
.clang-format
43 lines (38 loc) · 1.29 KB
/
.clang-format
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
32
33
34
35
36
37
38
39
40
41
42
43
{
# Based on https://github.com/clearmatics/zeth/.clang-format
# .clang-format in root of repository. To run on single file:
#
# $ clang-format -style=file -i <file path>
#
# To run on whole repo:
#
# $ scripts/format
BasedOnStyle: llvm,
Standard: C++11,
IndentWidth: 4,
AccessModifierOffset: -4,
UseTab: Never,
FixNamespaceComments: "true",
IncludeBlocks: Regroup,
MaxEmptyLinesToKeep: 1,
BreakBeforeTernaryOperators: "true",
SpaceBeforeCpp11BracedList: "false",
Cpp11BracedListStyle: "true",
KeepEmptyLinesAtTheStartOfBlocks: "true",
AllowShortIfStatementsOnASingleLine: "false",
SpaceAfterTemplateKeyword: "false",
AlwaysBreakAfterReturnType: None,
PenaltyReturnTypeOnItsOwnLine: 10000000,
SpaceAfterCStyleCast: "false",
SpaceBeforeAssignmentOperators: "true",
AlignAfterOpenBracket: AlwaysBreak,
AllowAllParametersOfDeclarationOnNextLine: "true",
BinPackArguments: "false",
BinPackParameters: "false",
AlwaysBreakTemplateDeclarations: MultiLine,
BreakBeforeBraces: Linux,
BreakConstructorInitializers: BeforeComma,
BreakInheritanceList: BeforeComma,
ConstructorInitializerAllOnOneLineOrOnePerLine: "true",
# AllowAllConstructorInitializersOnNextLine: "false",
}