-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-format
More file actions
62 lines (37 loc) · 1.29 KB
/
Copy path.clang-format
File metadata and controls
62 lines (37 loc) · 1.29 KB
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
# Documentation on
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
Standard: c++17
Language: Cpp
BasedOnStyle: Microsoft
IndentWidth: 4
UseTab: Always
ColumnLimit: 180
#===============================================================================
# ALIGNMENT
#===============================================================================
# Function parameters
AlignAfterOpenBracket: Align
BinPackParameters: false
AlignConsecutiveAssignments: AcrossEmptyLinesAndComments
AlignConsecutiveBitFields: AcrossEmptyLinesAndComments
AlignConsecutiveDeclarations: AcrossEmptyLinesAndComments
AlignConsecutiveMacros: AcrossEmptyLinesAndComments
AlignEscapedNewlines: Left
AlignOperands: AlignAfterOperator
AlignTrailingComments:
Kind: Always
OverEmptyLines: 2
IndentCaseLabels: false
AllowShortFunctionsOnASingleLine: Inline
#===============================================================================
# OTHER OPTIONS
#===============================================================================
AccessModifierOffset: -4
AllowShortEnumsOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: true
AlwaysBreakTemplateDeclarations: Yes
BreakBeforeBraces: Allman
EmptyLineBeforeAccessModifier: LogicalBlock
FixNamespaceComments: true
MaxEmptyLinesToKeep: 3
SortIncludes: Never