-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.clang-format
47 lines (46 loc) · 1.18 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
#https://clang.llvm.org/docs/ClangFormatStyleOptions.html
BasedOnStyle: LLVM
AccessModifierOffset: -4
AllowShortLambdasOnASingleLine: All
AllowShortFunctionsOnASingleLine: None
AlignTrailingComments: true
AlwaysBreakTemplateDeclarations: true
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
AlignAfterOpenBracket: Align
AllowShortEnumsOnASingleLine: false
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: true
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
BeforeCatch: true
BeforeElse: true
IndentBraces: false
BreakConstructorInitializersBeforeComma: true
ColumnLimit: 140
#ColumnLimit: 0
Cpp11BracedListStyle: true
FixNamespaceComments: false
IndentWidth: 4
IndentCaseLabels: true
KeepEmptyLinesAtTheStartOfBlocks: true
LambdaBodyIndentation: Signature
NamespaceIndentation: All
PenaltyExcessCharacter: 1
PointerAlignment: Left
ReflowComments: false
SortIncludes: true
SortUsingDeclarations: true
SpaceBeforeParens: Always
SpacesInAngles: false
SpacesInParentheses: false
SpacesBeforeTrailingComments: 1
Standard: c++20
TabWidth: 4
UseTab: Never