-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy path.clang-format
More file actions
41 lines (41 loc) · 1.36 KB
/
.clang-format
File metadata and controls
41 lines (41 loc) · 1.36 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
36
37
38
39
40
41
---
BasedOnStyle: WebKit
AlignAfterOpenBracket: AlwaysBreak
AlignTrailingComments:
Kind: Always
OverEmptyLines: 0
BinPackParameters: false
BreakArrays: false
BreakBeforeBinaryOperators: NonAssignment
BreakStringLiterals: false
ColumnLimit: 80
CommentPragmas: '^@.+'
FixNamespaceComments: true
# Regroup includes with a priority system
IncludeBlocks: Regroup
IncludeCategories:
# by default, the main header of a cpp will get priority 0
# regex here are sorted by search pattern, not by sort priority
- Regex: "^<ipc\/[^/]*>" # this libraries
Priority: 2 # internal library group
SortPriority: 2
CaseSensitive: true
- Regex: "^<ipc\/.*\/.*>" # this libraries
Priority: 2 # internal library group
SortPriority: 3
CaseSensitive: true
- Regex: "^<(.*\\.h[px]*)|(Eigen\/.*)>"
Priority: 4 # libraries (because they end in .h)
SortPriority: 4
CaseSensitive: false
- Regex: "^<.*"
Priority: 5 # system (without .h, because that is captured by the other group)
SortPriority: 5
CaseSensitive: false
- Regex: ".*" # catch-all for internal files
Priority: 1 # internal file group
SortPriority: 1
CaseSensitive: true
PackConstructorInitializers: CurrentLine
SortIncludes: CaseInsensitive
...