forked from PointCloudLibrary/pcl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
70 lines (70 loc) · 2.07 KB
/
.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
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
AlwaysBreakAfterReturnType: All
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: false
BinPackParameters: false
BraceWrapping:
AfterFunction: true
AfterClass: false
AfterStruct: false
BeforeElse: true
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
BreakBeforeBraces: Custom
BreakConstructorInitializers: BeforeComma
ColumnLimit: 88
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 0
Language: Cpp
NamespaceIndentation: None
PointerAlignment: Left
Standard: c++14
TabWidth: 2
UseTab: Never
IncludeBlocks: Regroup
IncludeCategories:
# Main PCL includes of common module should be sorted at end of PCL includes
- Regex: '^<pcl/[^/]+>$'
Priority: 100
SortPriority: 101
# All other PCL includes, which are grouped into modules
- Regex: '^<pcl/.*/.*>$'
Priority: 100
SortPriority: 100
# Major 3rd-Party components of tests & modules
- Regex: '^<gtest/'
Priority: 200
- Regex: '^<boost/'
Priority: 210
- Regex: '^<(unsupported/)?Eigen/'
Priority: 220
- Regex: '^<flann/'
Priority: 230
# Major 3rd-Party components of apps
- Regex: '^<Q[^/]+>$'
Priority: 300
CaseSensitive: true
- Regex: '^<ui_[^/]+\.h>$'
Priority: 300
- Regex: '^<vtk[^/]+\.h>$'
Priority: 310
# Minor 3rd-Party components
- Regex: '^<librealsense2/'
Priority: 400
- Regex: '^<(ros|message_filters)/'
Priority: 410
- Regex: '^<opencv(2)?/'
Priority: 420
- Regex: '^<tide/'
Priority: 430
- Regex: '^<thrust/'
Priority: 440
- Regex: '^<(OpenGL|(GL(UT)?/))'
Priority: 450
# Matches all std includes. Match them before any unknown include, so we can order them behind.
- Regex: '^<[a-z_]+>$'
Priority: 900
# Any unknown include
- Regex: '.*'
Priority: 500