-
Notifications
You must be signed in to change notification settings - Fork 2
/
.clang-format
84 lines (83 loc) · 2.51 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
83
84
---
BasedOnStyle: Microsoft
AccessModifierOffset: -4
AlignAfterOpenBracket: DontAlign
AlignConsecutiveAssignments: None
AlignConsecutiveBitFields: true # 11
AlignConsecutiveDeclarations: None
AlignEscapedNewlines: Left
AlignOperands: DontAlign
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: false # 11
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: Inline # 9
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: Yes # 7
BinPackArguments: true
BinPackParameters: true
BitFieldColonSpacing: After # 12
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeBraces: Allman
BreakBeforeConceptDeclarations: true # 12
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeColon
BreakInheritanceList: AfterColon # 7
BreakStringLiterals: true
ColumnLimit: 100
CompactNamespaces: false
Cpp11BracedListStyle: false
DerivePointerAlignment: false
EmptyLineAfterAccessModifier: Never # 13
EmptyLineBeforeAccessModifier: Always # 13
FixNamespaceComments: true
IncludeBlocks: Regroup # 7
IndentCaseLabels: true
IndentGotoLabels: false # 10
IndentPPDirectives: AfterHash
IndentRequires: true # 14
IndentWidth: 4
IndentWrappedFunctionNames: false
#InsertBraces: true # 15
KeepEmptyLinesAtTheStartOfBlocks: false
Language: Cpp
MaxEmptyLinesToKeep: 1
NamespaceIndentation: Inner
PackConstructorInitializers: NextLine # 14
PointerAlignment: Left
PPIndentWidth: 2 # 13
QualifierAlignment: Custom # 14
QualifierOrder: ["inline", "static", "constexpr", "const", "volatile", "type"] # 14
ReflowComments: false
RemoveBracesLLVM: false # 14
#RequiresClausePosition # 15
SeparateDefinitionBlocks: Leave # 14
SortIncludes: Never
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterTemplateKeyword: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeCtorInitializerColon: true # 7
SpaceBeforeInheritanceColon: true # 7
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true # 7
SpaceInEmptyBlock: false # 10
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: Never
SpacesInCStyleCastParentheses: false
SpacesInConditionalStatement: false # 10
SpacesInLineCommentPrefix: # 13
Minimum: 0
Maximum: 1
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Latest
TabWidth: 4
UseCRLF: false # 10
UseTab: Never