-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.clang-format
More file actions
90 lines (71 loc) · 2.02 KB
/
Copy path.clang-format
File metadata and controls
90 lines (71 loc) · 2.02 KB
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
85
86
87
88
89
90
BasedOnStyle: Google
Language: Cpp
Standard: c++20
AlignTrailingComments: true
AlignConsecutiveDeclarations: Consecutive
AlignConsecutiveBitFields: Consecutive
QualifierAlignment: Left
ColumnLimit: 90
IndentWidth: 2
DerivePointerAlignment: false
PointerAlignment: Left
IndentRequires: true
IndentCaseLabels: true
IndentAccessModifiers: false
AccessModifierOffset: -1
NamespaceIndentation: None
FixNamespaceComments: true
EmptyLineBeforeAccessModifier: Always
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowAllConstructorInitializersOnNextLine: false
BinPackParameters: false
BinPackArguments: false
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: Never
AllowShortBlocksOnASingleLine: Empty
AllowShortLambdasOnASingleLine: All
AllowShortEnumsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
BreakBeforeBinaryOperators: None
BreakBeforeTernaryOperators: true
BreakBeforeConceptDeclarations: true
SpaceBeforeCpp11BracedList: true
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: false
AfterClass: true
AfterStruct: true
AfterControlStatement: Never
AfterEnum: true
AfterFunction: true
AfterNamespace: false
AfterObjCDeclaration: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: true
BeforeElse: true
BeforeLambdaBody: false
BeforeWhile: false
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
BreakStringLiterals: true
BreakInheritanceList: BeforeComma
BreakConstructorInitializers: BeforeComma
SortIncludes: CaseSensitive
IncludeBlocks: Regroup
IncludeCategories:
# Standard headers, located in <> with no extension.
- Regex: '<([A-Za-z0-9\_\-]+)>'
SortPriority: 1
Priority: 1
# Headers in <> with extension and optional prefix.
- Regex: '<([A-Za-z0-9\_\-]+\/)*(\.\.)*([A-Za-z0-9\_\-]+)\.([A-Za-z0-9\_\-]+)>'
SortPriority: 2
Priority: 2
# Headers in "" with extension.
- Regex: '"([A-Za-z0-9.\Q/-_\E])+"'
SortPriority: 3
Priority: 3