-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
82 lines (71 loc) · 2.37 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Visual Studio generated .clang-format file
# The style options in this file are a best effort attempt to replicate the
# current IDE formatting configuration from Tools > Options. The following
# style options, however, should be verified:
# AfterClass, AfterControlStatement, AfterEnum, AfterFunction, AfterNamespace,
# AfterStruct, AfterUnion
AccessModifierOffset: -4
AlignAfterOpenBracket: Align # ours is Align
AlignConsecutiveDeclarations: true
AlignOperands: true
AlignTrailingComments: true
AlignConsecutiveAssignments: true
AlignEscapedNewlines: DontAlign
AllowShortBlocksOnASingleLine: true
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakBeforeMultilineStrings : false
AllowAllParametersOfDeclarationOnNextLine : false
AllowShortCaseLabelsOnASingleLine : true
BinPackArguments : false
BinPackParameters : false
BasedOnStyle: WebKit
BraceWrapping:
AfterClass: true # TODO: verify
# AfterControlStatement: true # TODO: verify
# AfterEnum: true # TODO: verify
AfterFunction: true # TODO: verify
# AfterNamespace: true # TODO: verify
# AfterStruct: true # TODO: verify
# AfterUnion: true # TODO: verify
BeforeCatch: true
BeforeElse: true
# IndentBraces: false
# SplitEmptyFunction: true
# SplitEmptyRecord: true
BreakBeforeBraces: Allman
BreakConstructorInitializers: BeforeComma
BreakBeforeTernaryOperators : true
BreakBeforeBinaryOperators : None
BreakInheritanceList : BeforeComma
ContinuationIndentWidth : 8
ColumnLimit: 132
Cpp11BracedListStyle: true
IndentCaseLabels: false
IndentPPDirectives: None
IndentWidth: 4
PointerAlignment: Left
SpaceAfterCStyleCast: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesInCStyleCastParentheses: false
SpacesInSquareBrackets: false
MaxEmptyLinesToKeep: 2
NamespaceIndentation: All
CompactNamespaces : false
FixNamespaceComments : true
Standard: Cpp11
TabWidth: 4
UseTab: AlignWithSpaces
SortIncludes: false
SortUsingDeclarations: false
IncludeBlocks : Preserve
ReflowComments: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
SpacesInParentheses: false
KeepEmptyLinesAtTheStartOfBlocks : false
#StatmentMacros: ['TEST_CLASS', 'TEST_CLASS_INITIALIZE', 'TEST_CLASS_CLEANUP', 'TEST_METHOD']