forked from RosettaCommons/binder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
49 lines (37 loc) · 1013 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
37
38
39
40
41
42
43
44
45
46
47
48
49
---
BasedOnStyle: LLVM
Standard: Cpp11
IndentWidth: 4
TabWidth: 4
UseTab: Always
ColumnLimit: 200
MaxEmptyLinesToKeep: 4
AlignTrailingComments: false
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
# require clang-format v14+
# PackConstructorInitializers: CurrentLine
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: true
AfterStruct: true
AfterFunction: true
BeforeElse: true
SpaceBeforeParens: Never
# require clang-format v14+
# SpaceBeforeParens: Custom
# SpaceBeforeParensOptions:
# AfterControlStatements: false
SpacesInParentheses: false
SpacesInConditionalStatement: true
SpaceInEmptyParentheses: false
SpacesInAngles: Leave
IndentAccessModifiers: false
AccessModifierOffset: -4
AllowShortFunctionsOnASingleLine: InlineOnly
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
AllowShortBlocksOnASingleLine: Always
#PointerAlignment: Middle
#SpaceAroundPointerQualifiers: Both
#ReferenceAlignment: Middle
...