-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.clang-format
120 lines (97 loc) · 4.39 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
BasedOnStyle: LLVM
AccessModifierOffset: -1
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: Consecutive
AlignConsecutiveBitFields: Consecutive
AlignConsecutiveDeclarations: Consecutive
AlignConsecutiveMacros: Consecutive
AlignEscapedNewlines: Right
AlignOperands: AlignAfterOperator
AlignTrailingComments: true
AllowAllArgumentsOnNextLine: true
AllowAllConstructorInitializersOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: Always
AllowShortCaseLabelsOnASingleLine: true
AllowShortEnumsOnASingleLine: true
AllowShortFunctionsOnASingleLine: InlineOnly
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: All
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: true
BinPackParameters: true
BitFieldColonSpacing: Both
BreakBeforeBraces: Attach
BreakBeforeBinaryOperators: All
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeComma
BreakInheritanceList: BeforeComma
BreakStringLiterals: true
ColumnLimit: 120
CompactNamespaces: false
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
EmptyLineAfterAccessModifier: Never
EmptyLineBeforeAccessModifier: Always
FixNamespaceComments: true
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '(<assert.h>)|(<complex.h>)|(<ctype.h>)|(<errno.h>)|(<fenv.h>)|(<float.h>)|(<inttypes.h>)|(<iso646.h>)|(<limits.h>)|(<locale.h>)|(<math.h>)|(<setjmp.h>)|(<signal.h>)|(<stdalign.h>)|(<stdarg.h>)|(<stdbool.h>)|(<stddef.h>)|(<stdint.h>)|(<stdio.h>)|(<stdlib.h>)|(<string.h>)|(<tgmath.h>)|(<time.h>)|(<uchar.h>)|(<wchar.h>)|(<wctype.h>)'
Priority: 100
- Regex: '(<cassert>)|(<ccomplex>)|(<cctype>)|(<cerrno>)|(<cfenv>)|(<cfloat>)|(<cinttypes>)|(<ciso646>)|(<climits>)|(<clocale>)|(<cmath>)|(<csetjmp>)|(<csignal>)|(<cstdalign>)|(<cstdarg>)|(<cstdbool>)|(<cstddef>)|(<cstdint>)|(<cstdio>)|(<cstdlib>)|(<cstring>)|(<ctgmath>)|(<ctime>)|(<cuchar>)|(<cwchar>)|(<cwctype>)'
Priority: 200
- Regex: '(<algorithm>)|(<any>)|(<array>)|(<atomic>)|(<barrier>)|(<bit>)|(<bitset>)|(<charconv>)|(<chrono>)|(<codecvt>)|(<compare>)|(<complex>)|(<concepts>)|(<condition_variable>)|(<coroutine>)|(<deque>)|(<exception>)|(<execution>)|(<filesystem>)|(<format>)|(<forward_list>)|(<fstream>)|(<functional>)|(<future>)|(<initializer_list>)|(<iomanip>)|(<ios>)|(<iosfwd>)|(<iostream>)|(<istream>)|(<iterator>)|(<latch>)|(<limits>)|(<list>)|(<locale>)|(<map>)|(<memory>)|(<memory_resource>)|(<mutex>)|(<new>)|(<numbers>)|(<numeric>)|(<optional>)|(<ostream>)|(<queue>)|(<random>)|(<ranges>)|(<ratio>)|(<regex>)|(<scoped_allocator>)|(<semaphore>)|(<set>)|(<shared_mutex>)|(<source_location>)|(<span>)|(<sstream>)|(<stack>)|(<stdexcept>)|(<stop_token>)|(<streambuf>)|(<string>)|(<string_view>)|(<strstream>)|(<syncstream>)|(<system_error>)|(<thread>)|(<tuple>)|(<typeindex>)|(<typeinfo>)|(<type_traits>)|(<unordered_map>)|(<unordered_set>)|(<utility>)|(<valarray>)|(<variant>)|(<vector>)|(<version>)'
Priority: 300
- Regex: '<.*>'
Priority: 400
- Regex: '"hut/utils/[0-9a-z_]*.hpp"'
Priority: 500
- Regex: '"hut/[0-9a-z_]*.hpp"'
Priority: 600
- Regex: '"hut/[0-9a-z_]*/[0-9a-z_]*.hpp"'
Priority: 700
IndentCaseBlocks: true
IndentCaseLabels: true
IndentPPDirectives: AfterHash
IndentWidth: 2
KeepEmptyLinesAtTheStartOfBlocks: false
Language: Cpp
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
PackConstructorInitializers: Never
PointerAlignment: Right
QualifierAlignment: Custom
QualifierOrder: [ 'constexpr', 'const', 'static', 'inline', 'type' ]
ReferenceAlignment: Right
ReflowComments: false
#SeparateDefinitionBlocks: Always
ShortNamespaceLines: 0
SortIncludes: CaseSensitive
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeCaseColon: false
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceBeforeSquareBrackets: false
SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 2
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInConditionalStatement: false
SpacesInContainerLiterals: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: c++20
TabWidth: 2
UseCRLF: false
UseTab: Never