-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.clang-format
52 lines (52 loc) · 1.73 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
---
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: AcrossEmptyLinesAndComments
AlignConsecutiveMacros: AcrossEmptyLinesAndComments
AlignEscapedNewlines: Right
AlignTrailingComments: true
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLoopsOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: true
AlwaysBreakTemplateDeclarations: 'Yes'
# AlignOperands: AlignAfterOperator # clang-format 12
# AlignConsecutiveShortCaseStatements: # clang-format 17
# Enabled: true
# AcrossEmptyLines: true
# AcrossComments: true
# AlignCaseColons: false
BinPackArguments: false
BinPackParameters: false
BreakBeforeBraces: Allman
BreakConstructorInitializers: BeforeComma
ConstructorInitializerIndentWidth: 2
ContinuationIndentWidth: 2
# EmptyLineBeforeAccessModifier: Always # clang-format 13
IndentCaseLabels: true
IndentWidth: 2
IndentPPDirectives: AfterHash
NamespaceIndentation: All
# PackConstructorInitializers: Never # clang-format 14
# PPIndentWidth: 2 # clang-format 14
PointerAlignment: Left
# ReferenceAlignment: Left # clang-format 14
ReflowComments: true
SortIncludes: false
SpaceAfterCStyleCast: false
SpaceAfterTemplateKeyword: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeCaseColon: false
SpaceBeforeCpp11BracedList: true
SpaceBeforeInheritanceColon: false
SpaceBeforeParens: ControlStatementsExceptControlMacros
SpaceBeforeRangeBasedForLoopColon: false
# SpaceBeforeSquareBrackets: false # clang-format 11
# SpaceInEmptyBlock: false # clang-format 11
SpaceInEmptyParentheses: false
# SpacesInAngles: Never #clang-format 14
SpacesInCStyleCastParentheses: false
# SpacesInConditionalStatement: false # clang-format 11
SpacesInContainerLiterals: false
SpacesInSquareBrackets: false
UseTab: Never
...