-
Notifications
You must be signed in to change notification settings - Fork 6
/
.clang-tidy
73 lines (63 loc) · 2.21 KB
/
.clang-tidy
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
71
72
73
---
Checks: '-*,
boost-*,
bugprone-*,
cppcoreguidelines-*,
misc-*,
modernize-*,
performance-*,
readability-*,
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
-cppcoreguidelines-pro-bounds-constant-array-index,
-cppcoreguidelines-pro-type-vararg,
-modernize-raw-string-literal,
-readability-misleading-indentation'
## Disabled to allow ROS logging:
# cppcoreguidelines-pro-type-vararg
# cppcoreguidelines-pro-bounds-array-to-pointer-decay
## Handled by clang-format:
# readability-misleading-indentation
## Disabled:
# cppcoreguidelines-pro-bounds-constant-array-index
# modernize-raw-string-literal
WarningsAsErrors: ''
HeaderFilterRegex: '.*/src/uwreact_robot/.*'
AnalyzeTemporaryDtors: false # TODO: Figure out what this does
FormatStyle: none
CheckOptions:
# Prefer assignment over brace initialization
- key: modernize-use-default-member-init.UseAssignment
value: 1
# Allow integer and pointer boolean conversions
- key: readability-implicit-bool-conversion.AllowIntegerConditions
value: 1
- key: readability-implicit-bool-conversion.AllowPointerConditions
value: 1
# Type names
- key: readability-identifier-naming.ClassCase
value: CamelCase
- key: readability-identifier-naming.EnumCase
value: CamelCase
- key: readability-identifier-naming.UnionCase
value: CamelCase
# Method names
- key: readability-identifier-naming.MethodCase
value: camelBack
# Variable names
- key: readability-identifier-naming.VariableCase
value: lower_case
- key: readability-identifier-naming.ClassMemberSuffix
value: '_'
# Const static or global variables are UPPER_CASE
- key: readability-identifier-naming.EnumConstantCase
value: UPPER_CASE
- key: readability-identifier-naming.StaticConstantCase
value: UPPER_CASE
- key: readability-identifier-naming.ClassConstantCase
value: UPPER_CASE
- key: readability-identifier-naming.GlobalVariableCase
value: UPPER_CASE
# Ensure parameters are named exactly identical
- key: readability-inconsistent-declaration-parameter-name.Strict
value: 1
...