-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-tidy
54 lines (54 loc) · 2.36 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
Checks: >
*,
-abseil*,
-altera*,
-android*,
-fuchsia*,
-hicpp*,
-llvm*
-llvm_libc*,
-llvmlibc*,
-objc*,
-zircon*,
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-non-private-member-variables-in-class
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
-cppcoreguidelines-pro-type-vararg,
-google-readability-todo,
-google-runtime-references,
-modernize-use-trailing-return-type,
-readability-identifier-length,
-readability-magic-numbers,
-readability-uppercase-literal-suffix,
WarningsAsErrors: 'bugprone-use-after-move'
HeaderFilterRegex: ''
AnalyzeTemporaryDtors: false
FormatStyle: 'file'
CheckOptions:
# Needed to define safe do { stuff } while(0) macros
- key: cppcoreguidelines-avoid-do-while
value: 'IgnoreMacros'
- key: bugprone-assert-side-effect.AssertMacros
value: 'assert;ROS_ASSERT'
- key: cppcoreguidelines-avoid-magic-numbers.IgnoredFloatingPointValues
value: '0.5;1.0;100.0;2.0'
- key: cppcoreguidelines-avoid-magic-numbers.IgnoredIntegerValues
value: '1;2;3;4;'
- key: cppcoreguidelines-macro-usage.AllowedRegexp
value: '^DEBUG_*|IPA_LOGGING_CLASS_NAME'
- key: cppcoreguidelines-macro-usage.CheckCapsOnly
value: '0'
- key: readability-magic-numbers.IgnoredFloatingPointValues
value: '0.5;1.0;100.0;2.0'
- key: readability-magic-numbers.IgnoredIntegerValues
value: '1;2;3;4;'
- { key: readability-identifier-naming.NamespaceCase, value: lower_case }
- { key: readability-identifier-naming.ClassCase, value: CamelCase }
- { key: readability-identifier-naming.StructCase, value: CamelCase }
- { key: readability-identifier-naming.FunctionCase, value: camelBack}
- { key: readability-identifier-naming.VariableCase, value: lower_case }
- { key: readability-identifier-naming.ClassMemberSuffix, value: _ }
- { key: readability-identifier-naming.GlobalConstantCase, value: UPPER_CASE }
- { key: readability-identifier-naming.GlobalVariablePrefix, value: g_ }
- { key: readability-function-cognitive-complexity.IgnoreMacros, value: true }
- { key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic, value: true }