-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
executable file
·83 lines (73 loc) · 1.77 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#---------------------------------------------------------------------------
#
# Detail options: https://clang.llvm.org/docs/ClangFormatStyleOptions.html
#
#---------------------------------------------------------------------------
---
# `BaseOnStyle` options:
# `LLVM` A style complying with the LLVM coding standards
#
# `Google` A style complying with Google’s C++ style guide
#
# `Chromium` A style complying with Chromium’s style guide
#
# `Mozilla` A style complying with Mozilla’s style guide
#
# `WebKit` A style complying with WebKit’s style guide
#
# `Microsoft` A style complying with Microsoft’s style guide
#
# `GNU` A style complying with the GNU coding standards
BasedOnStyle: Google
ColumnLimit: 80
IndentWidth: 4
PPIndentWidth: 4
#
# Macro alignment rleated
#
IndentPPDirectives: BeforeHash
# IndentPPDirectives: AfterHash
AlignConsecutiveMacros:
Enabled: true
AcrossEmptyLines: true
AcrossComments: true
AlignEscapedNewlines: Right
#
# Operrands alignment related
#
AlignOperands: Align
#
# Trailing comments alignment related
#
AlignTrailingComments:
Kind: Always
OverEmptyLines: 1
#
# String alignment related
#
AlwaysBreakBeforeMultilineStrings: false
#
# Varialbe assignment alignment related
#
AlignConsecutiveAssignments:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
# AlignConsecutiveDeclarations:
# Enabled: true
# AcrossEmptyLines: true
# AcrossComments: false
#
# Function signature and call alignment related
#
AlignAfterOpenBracket: Align
# AlignAfterOpenBracket: AlwaysBreak
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortFunctionsOnASingleLine: Inline
BinPackArguments: false
BinPackParameters: false
#
# Switch case alignment related
#
AllowShortCaseLabelsOnASingleLine: true