-
Notifications
You must be signed in to change notification settings - Fork 227
/
.clang-format
33 lines (32 loc) · 1.61 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
# ClangFormat 14.0
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
AlignConsecutiveMacros: AcrossEmptyLinesAndComments
AlignOperands: DontAlign
AlignTrailingComments: false
AllowShortFunctionsOnASingleLine: Empty
AllowShortLoopsOnASingleLine: false
BraceWrapping:
AfterFunction: true
BreakBeforeBraces: Custom
ColumnLimit: 0
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '^<'
Priority: 1
SortPriority: 0
CaseSensitive: false
- Regex: '.*'
Priority: 2
SortPriority: 0
CaseSensitive: false
IncludeIsMainRegex: (\+?.*)?$
IncludeIsMainSourceRegex: (\+?.*\.h)$
IndentWidth: 4
IndentWrappedFunctionNames: true
KeepEmptyLinesAtTheStartOfBlocks: false
ObjCBlockIndentWidth: 4
ObjCSpaceAfterProperty: true
SeparateDefinitionBlocks: Always
SortIncludes: CaseInsensitive
SpaceAroundPointerQualifiers: Before
SpacesInContainerLiterals: false