-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.clang-format
36 lines (30 loc) · 934 Bytes
/
.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
# FeeLLGood code formatting conventions.
#
# Keep this file compatible with clang-format version 10.0 and above.
#
# Usage:
# clang-format -i *.h* *.cpp unit-tests/*.cpp tools/rev_CMK/rev_CMK.*
# Parse the code as C++17.
Standard: c++17
# Whitesmiths style, 4-space indent.
BreakBeforeBraces: Whitesmiths
IndentWidth: 4
UseTab: Never
# Enforce a maximum line length.
ColumnLimit: 100
# Adjust indent of specific constructs.
ContinuationIndentWidth: 8
AccessModifierOffset: -4
IndentCaseLabels: true
# Some short statements can fit in a single line.
AllowShortCaseLabelsOnASingleLine: true
AllowShortIfStatementsOnASingleLine: WithoutElse
# Miscellaneous settings.
AlignEscapedNewlines: Left
AlwaysBreakTemplateDeclarations: Yes
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeTernaryOperators: true
IndentPPDirectives: AfterHash
SpaceAfterCStyleCast: true
SpaceAfterTemplateKeyword: false
SpacesBeforeTrailingComments: 2