-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path.clang-format
More file actions
30 lines (28 loc) · 746 Bytes
/
.clang-format
File metadata and controls
30 lines (28 loc) · 746 Bytes
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
---
Language: Cpp
BasedOnStyle: Mozilla
# Basic Formatting
AccessModifierOffset: -4
ColumnLimit: 78
ContinuationIndentWidth: 4
IndentWidth: 4
# Advanced Formatting
AlignAfterOpenBracket: AlwaysBreak
AlignOperands: false
AlignTrailingComments: false
BreakConstructorInitializers: BeforeColon
IncludeCategories:
- Regex: '<[[:alnum:]]+>'
Priority: 0
# enter system/compiler/framework includes here
- Regex: '<omp.h>|<cuda.h>'
Priority: 1
- Regex: '^(<Eigen/|<unsupported/Eigen/)'
Priority: 2
- Regex: '^(<mbsolve/)'
Priority: 3
- Regex: '(.h>|.hpp>)$'
Priority: 2
IndentCaseLabels: false
SpaceAfterCStyleCast: true
Standard: Cpp03