-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-format
More file actions
30 lines (28 loc) · 816 Bytes
/
.clang-format
File metadata and controls
30 lines (28 loc) · 816 Bytes
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
## clang format
## key reference: https://clang.llvm.org/docs/ClangFormatStyleOptions.html
UseTab: Never
IndentWidth: 4
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
TabWidth: 4
SpacesBeforeTrailingComments: 4
BinPackParameters: true
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
AlignEscapedNewlinesLeft: true
BreakBeforeBraces: Allman
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false
ColumnLimit: 0
AccessModifierOffset: -4
NamespaceIndentation: All
FixNamespaceComments: true
AllowShortLambdasOnASingleLine: Inline
BreakInheritanceList: BeforeComma
Cpp11BracedListStyle: false
AllowShortCaseLabelsOnASingleLine: true
SortIncludes: CaseSensitive
PPIndentWidth: 4
BreakConstructorInitializers: BeforeComma
PointerAlignment: Left
ReferenceAlignment: Left