-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy path.clang-format
More file actions
35 lines (34 loc) · 1.03 KB
/
.clang-format
File metadata and controls
35 lines (34 loc) · 1.03 KB
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
# Based on NumPy's clang-format style at
# https://github.com/numpy/numpy/blob/main/.clang-format
BasedOnStyle: Google
AlignAfterOpenBracket: BlockIndent
BinPackArguments: false
BinPackParameters: false
AllowShortEnumsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AlwaysBreakAfterReturnType: TopLevel
BreakBeforeBraces: Stroustrup
ColumnLimit: 100
ContinuationIndentWidth: 4
DerivePointerAlignment: false
IndentWidth: 4
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^[<"](Python|structmember|pymem)\.h'
Priority: -3
CaseSensitive: true
- Regex: '^"mrmustard/math/mathlib/cython_lattice/'
Priority: -2
- Regex: '^"[[:alnum:]_.]+"'
Priority: 1
- Regex: '^<[[:alnum:]_.]+>'
Priority: 2
IndentPPDirectives: AfterHash
Language: Cpp
PointerAlignment: Right
ReflowComments: true
SpaceBeforeParens: ControlStatements
SpacesInParentheses: false
StatementMacros: [PyObject_HEAD, PyObject_VAR_HEAD, PyObject_HEAD_EXTRA]
TabWidth: 4
UseTab: Never