Skip to content

Commit 4c7f508

Browse files
committed
fix
1 parent 1b94c28 commit 4c7f508

35 files changed

+846
-1668
lines changed

.clang-format

+41-41
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
2-
Language: Cpp
2+
Language: Cpp
33
# BasedOnStyle: LLVM
44
AccessModifierOffset: -2
55
AlignAfterOpenBracket: Align
66
AlignConsecutiveMacros: false
77
AlignConsecutiveAssignments: false
88
AlignConsecutiveDeclarations: false
99
AlignEscapedNewlines: Right
10-
AlignOperands: true
10+
AlignOperands: true
1111
AlignTrailingComments: true
1212
AllowAllArgumentsOnNextLine: true
1313
AllowAllConstructorInitializersOnNextLine: true
@@ -25,19 +25,19 @@ AlwaysBreakTemplateDeclarations: Yes
2525
BinPackArguments: true
2626
BinPackParameters: true
2727
BraceWrapping:
28-
AfterCaseLabel: false
29-
AfterClass: false
28+
AfterCaseLabel: false
29+
AfterClass: false
3030
AfterControlStatement: false
31-
AfterEnum: false
32-
AfterFunction: false
33-
AfterNamespace: false
31+
AfterEnum: false
32+
AfterFunction: false
33+
AfterNamespace: false
3434
AfterObjCDeclaration: false
35-
AfterStruct: false
36-
AfterUnion: false
35+
AfterStruct: false
36+
AfterUnion: false
3737
AfterExternBlock: false
38-
BeforeCatch: false
39-
BeforeElse: false
40-
IndentBraces: false
38+
BeforeCatch: false
39+
BeforeElse: false
40+
IndentBraces: false
4141
SplitEmptyFunction: true
4242
SplitEmptyRecord: true
4343
SplitEmptyNamespace: true
@@ -50,48 +50,48 @@ BreakConstructorInitializersBeforeComma: false
5050
BreakConstructorInitializers: BeforeColon
5151
BreakAfterJavaFieldAnnotations: false
5252
BreakStringLiterals: true
53-
ColumnLimit: 100
54-
CommentPragmas: '^ IWYU pragma:'
53+
ColumnLimit: 100
54+
CommentPragmas: "^ IWYU pragma:"
5555
CompactNamespaces: false
5656
ConstructorInitializerAllOnOneLineOrOnePerLine: false
5757
ConstructorInitializerIndentWidth: 4
5858
ContinuationIndentWidth: 4
5959
Cpp11BracedListStyle: true
6060
DeriveLineEnding: true
6161
DerivePointerAlignment: false
62-
DisableFormat: false
62+
DisableFormat: false
6363
ExperimentalAutoDetectBinPacking: false
6464
FixNamespaceComments: true
6565
ForEachMacros:
6666
- foreach
6767
- Q_FOREACH
6868
- BOOST_FOREACH
69-
IncludeBlocks: Preserve
69+
IncludeBlocks: Preserve
7070
IncludeCategories:
71-
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
72-
Priority: 2
73-
SortPriority: 0
74-
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
75-
Priority: 1
76-
SortPriority: 0
77-
- Regex: '.*'
78-
Priority: 3
79-
SortPriority: 0
80-
- Regex: '^(src|wasm-compiler)/'
81-
Priority: 4
82-
SortPriority: 0
83-
IncludeIsMainRegex: '(Test)?$'
84-
IncludeIsMainSourceRegex: ''
71+
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
72+
Priority: 2
73+
SortPriority: 0
74+
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
75+
Priority: 1
76+
SortPriority: 0
77+
- Regex: ".*"
78+
Priority: 3
79+
SortPriority: 0
80+
- Regex: "^(src|wasm-compiler)/"
81+
Priority: 4
82+
SortPriority: 0
83+
IncludeIsMainRegex: "(Test)?$"
84+
IncludeIsMainSourceRegex: ""
8585
IndentCaseLabels: false
8686
IndentGotoLabels: true
8787
IndentPPDirectives: None
88-
IndentWidth: 2
88+
IndentWidth: 2
8989
IndentWrappedFunctionNames: false
9090
JavaScriptQuotes: Leave
9191
JavaScriptWrapImports: true
9292
KeepEmptyLinesAtTheStartOfBlocks: true
93-
MacroBlockBegin: ''
94-
MacroBlockEnd: ''
93+
MacroBlockBegin: ""
94+
MacroBlockEnd: ""
9595
MaxEmptyLinesToKeep: 1
9696
NamespaceIndentation: None
9797
ObjCBinPackProtocolList: Auto
@@ -107,8 +107,8 @@ PenaltyBreakTemplateDeclaration: 10
107107
PenaltyExcessCharacter: 1000000
108108
PenaltyReturnTypeOnItsOwnLine: 60
109109
PointerAlignment: Right
110-
ReflowComments: true
111-
SortIncludes: true
110+
ReflowComments: true
111+
SortIncludes: true
112112
SortUsingDeclarations: true
113113
SpaceAfterCStyleCast: false
114114
SpaceAfterLogicalNot: false
@@ -122,19 +122,19 @@ SpaceBeforeRangeBasedForLoopColon: true
122122
SpaceInEmptyBlock: false
123123
SpaceInEmptyParentheses: false
124124
SpacesBeforeTrailingComments: 1
125-
SpacesInAngles: false
125+
SpacesInAngles: false
126126
SpacesInConditionalStatement: false
127127
SpacesInContainerLiterals: true
128128
SpacesInCStyleCastParentheses: false
129129
SpacesInParentheses: false
130130
SpacesInSquareBrackets: false
131131
SpaceBeforeSquareBrackets: false
132-
Standard: Latest
132+
Standard: Latest
133133
StatementMacros:
134134
- Q_UNUSED
135135
- QT_REQUIRE_VERSION
136-
TabWidth: 8
137-
UseCRLF: false
138-
UseTab: Never
139-
...
136+
TabWidth: 8
137+
UseCRLF: false
138+
UseTab: Never
139+
---
140140

0 commit comments

Comments
 (0)