-
Notifications
You must be signed in to change notification settings - Fork 1
/
.clang-format
38 lines (38 loc) · 1.08 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
BasedOnStyle: Google
IndentWidth: 2
ColumnLimit: 0
ContinuationIndentWidth: 2
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlinesLeft: false # Changed to false
AllowShortFunctionsOnASingleLine: None
AllowShortBlocksOnASingleLine: true
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
BreakBeforeBraces: Allman
BreakConstructorInitializers: BeforeColon
BreakBeforeBinaryOperators: NonAssignment
BreakStringLiterals: false
EmptyLineBeforeAccessModifier: Always
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '^<.*\.h>'
Priority: 1
- Regex: '^".*\.h"'
Priority: 2
KeepEmptyLinesAtTheStartOfBlocks: true
BreakAfterReturnType: AllDefinitions
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
PointerAlignment: Left
QualifierAlignment: Left
SpaceAfterCStyleCast: true
SpaceAfterTemplateKeyword: true
SpaceBeforeParens: Never
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
UseTab: Never
IndentCaseLabels: true
AlwaysBreakAfterDefinitionReturnType: All