forked from lab-cosmo/librascal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
30 lines (30 loc) · 986 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
# Default style
BasedOnStyle: LLVM
# Customization
AccessModifierOffset: -1
AlwaysBreakTemplateDeclarations: true
ColumnLimit: 80
IncludeBlocks: Regroup
IncludeCategories:
# rascal headers in "" with extension
- Regex: '"rascal/[[:alnum:]/_]+\.h+p*"'
Priority: 2
# Headers in "" with extension, i.e. local headers
- Regex: '"[[:alnum:]/_]+\.h+p*"'
Priority: 1
# Headers in <> with extension, i.e. external libraries headers
- Regex: '<[[:alnum:]/_]+\.h+p*>'
Priority: 3
# Eigen headers look like standard library headers
- Regex: '<Eigen/[[:alnum:]]+>'
Priority: 4
# Headers in <> without extension, i.e. usually c/c++ standard library headers
- Regex: '<[[:alnum:]_]+>'
Priority: 5
IndentWidth: 2
KeepEmptyLinesAtTheStartOfBlocks: false
NamespaceIndentation: All
PointerAlignment: Middle
ReflowComments: true
SortIncludes: true
SpacesBeforeTrailingComments: 2