-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-tidy
More file actions
81 lines (76 loc) · 2.69 KB
/
.clang-tidy
File metadata and controls
81 lines (76 loc) · 2.69 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
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
74
75
76
77
78
79
80
81
# To run clang-tidy from CMake, build with -DENABLE_CLANG_TIDY=ON
HeaderFilterRegex: '(common|procedures|programs)(/|\\).*(h|hpp)$'
# ExtraArgs:
# - '-I./include'
# - '-I/usr/include/eigen3'
# - '-std=c++17'
Checks: '
clang-diagnostic-*,
clang-analyzer-*,
cppcoreguidelines-*,
modernize-*,
bugprone-*,
readability-*,
performance-*,
-cppcoreguidelines-avoid-c-arrays,
-cppcoreguidelines-init-variables,
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-readability-implicit-bool-conversion,
-readability-magic-numbers,
-readability-identifier-length,
-readability-braces-around-statements,
-llvmlibc-restrict-system-libc-headers,
-modernize-use-trailing-return-type,
-clang-diagnostic-ignored-attributes,
-clang-diagnostic-inconsistent-dllimport
'
WarningsAsErrors: '*'
CheckOptions:
- key: readability-identifier-naming.ClassCase
value: lower_case
- key: readability-identifier-naming.EnumCase
value: lower_case
- key: readability-identifier-naming.LocalVariableCase
value: lower_case
- key: readability-identifier-naming.StaticConstantCase
value: aNy_CasE
- key: readability-identifier-naming.MemberCase
value: lower_case
- key: readability-identifier-naming.PrivateMemberPrefix
value: m_
- key: readability-identifier-naming.ProtectedMemberPrefix
value: m_
- key: readability-identifier-naming.PublicMemberCase
value: lower_case
- key: readability-identifier-naming.MethodCase
value: lower_case
- key: readability-identifier-naming.PrivateMethodPrefix
value: ''
- key: readability-identifier-naming.ProtectedMethodPrefix
value: ''
- key: readability-identifier-naming.ParameterPackCase
value: CamelCase
- key: readability-identifier-naming.StructCase
value: lower_case
- key: readability-identifier-naming.TemplateTemplateParameterCase
value: CamelCase
- key: readability-identifier-naming.TemplateUsingCase
value: CamelCase
- key: readability-identifier-naming.TypeTemplateParameterCase
value: CamelCase
- key: readability-identifier-naming.TypedefCase
value: lower_case
- key: readability-identifier-naming.UnionCase
value: lower_case
- key: readability-identifier-naming.UsingCase
value: lower_case
- key: performance-move-const-arg.CheckTriviallyCopyableMove
value: true
# Workaround clang-tidy bug: https://github.com/llvm/llvm-project/issues/46097
- key: readability-identifier-naming.TypeTemplateParameterIgnoredRegexp
value: expr-type
- key: readability-uppercase-literal-suffix.NewSuffixes
value: l;u;f
- key: bugprone-easily-swappable-parameters.MinimumLength
value: 5