-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.clang-format
53 lines (45 loc) · 1.26 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
44
45
46
47
48
49
50
51
52
53
AlignAfterOpenBracket: "Align"
AllowShortBlocksOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
BinPackArguments: false
BinPackParameters: false
ColumnLimit: 150
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 4
AccessModifierOffset: -1
ContinuationIndentWidth: 4
BreakBeforeBraces: Custom
BraceWrapping:
{
AfterClass: "false",
AfterControlStatement: "MultiLine",
AfterEnum: "false",
AfterFunction: "false",
AfterNamespace: "false",
AfterStruct: "false",
AfterUnion: "false",
BeforeCatch: "false",
BeforeElse: "false",
IndentBraces: "false",
AfterObjCDeclaration: "true",
}
AlwaysBreakTemplateDeclarations: true
IndentCaseLabels: true
IndentPPDirectives: AfterHash
NamespaceIndentation: All
BreakBeforeTernaryOperators: false
SpaceAfterTemplateKeyword: false
FixNamespaceComments: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 2
ReflowComments: true
UseTab: Never
TabWidth: 2
IndentWidth: 2
PenaltyReturnTypeOnItsOwnLine: 10000
PenaltyBreakAssignment: 100
SortIncludes: true
AlignEscapedNewlines: DontAlign
AlwaysBreakBeforeMultilineStrings: true
PenaltyBreakString: 1000000