-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.clang-format
62 lines (48 loc) · 1.52 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
#**************************************************************************************************
# File: /.clang-format
# Description: Style/formatting rules for auto-formatting via clangd
#**************************************************************************************************
# command:
# clang-format --verbose --style=file -i src/main.c src/**/*.h src/**/*.c
---
Language: Cpp
BasedOnStyle: LLVM
IndentWidth: 4
UseTab: Never
ColumnLimit: 100
AlignConsecutiveMacros: AcrossEmptyLinesAndComments
AlignTrailingComments:
Kind: Always
OverEmptyLines: 100
AllowAllArgumentsOnNextLine: true
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: False
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: true
BreakBeforeBraces: Custom
BraceWrapping:
BeforeElse: true
Cpp11BracedListStyle: false
DerivePointerAlignment: false
IndentCaseLabels: true
InsertNewlineAtEOF: true
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 1
PointerAlignment: Middle
QualifierAlignment: Custom
QualifierOrder: ['inline', 'static', 'volatile', 'const', 'type']
ReferenceAlignment: Right
RemoveSemicolon: true
SeparateDefinitionBlocks: Always
SortIncludes: Never
SpaceAfterCStyleCast: true
SpaceAfterLogicalNot: false
SpaceBeforeCaseColon: false
SpaceBeforeParens: Never
SpaceBeforeSquareBrackets: false
SpaceBeforeAssignmentOperators: true
SpacesBeforeTrailingComments: 15
SpaceInEmptyBlock: false
SpacesInCStyleCastParentheses: false
---