forked from lballabio/QuantLib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
55 lines (40 loc) · 1.1 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
---
Language: Cpp
Standard: Cpp03
# The following is close to the style we've been using all these years
# without formalizing it. Formatting won't be enforced, but this file
# can help if you want to use the general feel of the library.
# General appearance:
BasedOnStyle: LLVM
IndentWidth: 4
ColumnLimit: 100
NamespaceIndentation: All
MaxEmptyLinesToKeep: 2
FixNamespaceComments: false
# Function declarations:
BinPackParameters: false
AllowShortFunctionsOnASingleLine: Inline
AlwaysBreakTemplateDeclarations: true
# T& x, not T &x:
DerivePointerAlignment: false
PointerAlignment: Left
# QuantLib headers first, then Boost, then std
SortIncludes: true
IncludeBlocks: Merge
IncludeCategories:
- Regex: '^"'
Priority: 1
- Regex: '^<ql/'
Priority: 2
- Regex: '^<boost/'
Priority: 3
- Regex: '^<'
Priority: 4
# Other:
AlignEscapedNewlines: Left
BreakBeforeTernaryOperators: false
ConstructorInitializerIndentWidth: 0
SortUsingDeclarations: false
IndentCaseLabels: true
IndentPPDirectives: AfterHash
...