-
Notifications
You must be signed in to change notification settings - Fork 197
/
.clang-format
33 lines (33 loc) · 1.15 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
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
# Manual run to reformat a file "foo.cpp": clang-format -i --style=file foo.cpp
#######################################################################
BasedOnStyle: Google
#######################################################################
Language: Cpp
# DisableFormat: true
AccessModifierOffset: -4
# AlignArrayOfStructures: Right (enable this if clang-format-13 or newer is installed)
AlignConsecutiveMacros: true
AlignConsecutiveAssignments: true
#AlignConsecutiveDeclarations: true
AlignEscapedNewlines: Left
AlignOperands: true
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: Inline
AllowShortLoopsOnASingleLine: false
BreakBeforeBraces: Custom
BraceWrapping:
BeforeCatch: true
BeforeElse: true
BreakBeforeTernaryOperators: false
BreakStringLiterals: false
ColumnLimit: 120
DerivePointerAlignment: false
#EmptyLineBeforeAccessModifier: true (enable this if clang-format-13 or newer is installed)
IndentPPDirectives: BeforeHash
IndentWidth: 4
PointerAlignment: Left
ReflowComments: false
SortIncludes: false
UseTab: Never