File: .clang-format

package info (click to toggle)
quantlib 1.41-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 41,480 kB
  • sloc: cpp: 400,885; makefile: 6,547; python: 214; sh: 150; lisp: 86
file content (55 lines) | stat: -rw-r--r-- 1,123 bytes parent folder | download | duplicates (2)
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:        c++17


# 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

...