-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-tidy
86 lines (86 loc) · 3.9 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
74
75
76
77
78
79
80
81
82
83
84
85
86
Checks: >
clang-analyzer-*,
readability-identifier-naming*,
absl-*,
bugprone-*,
-bugprone-branch-clone,
-bugprone-easily-swappable-parameters,
-bugprone-exception-escape,
cert-*,
-cert-err58-cpp,
-cert-dcl21-cpp,
cppcoreguidelines-*,
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-non-private-member-variables-in-classes,
-cppcoreguidelines-pro-bounds-constant-array-index,
-cppcoreguidelines-missing-std-forward,
google-build-*,
google-default-arguments,
google-explicit-constructor,
google-global-names-in-headers,
google-readability-casting,
google-runtime-int,
google-runtime-operator,
google-upgrade-googletest-case,
hicpp-exception-baseclass,
hicpp-multiway-paths-covered,
hicpp-no-assembler,
misc-*,
-misc-non-private-member-variables-in-classes,
modernize-*,
-modernize-use-constraints,
-modernize-use-std-print,
-modernize-use-trailing-return-type,
performance-*,
readability-*,
-readability-magic-numbers,
-readability-identifier-length,
-readability-convert-member-functions-to-static,
# Warnings (diagnostic) that either trigger too much on external libs or are clang-specific.
clang-diagnostic-float-equal,
clang-diagnostic-deprecated-copy-with-user-provided-dtor,
clang-diagnostic-deprecated-copy-with-dtor,
clang-diagnostic-implicit-int-conversion,
clang-diagnostic-implicit-int-conversion,
clang-diagnostic-shorten-64-to-32,
clang-diagnostic-implicit-int-float-conversion,
clang-diagnostic-comma,
clang-diagnostic-deprecated-dynamic-exception-spec,
clang-diagnostic-unreachable-code-break,
clang-diagnostic-unreachable-code-return,
clang-diagnostic-shadow-uncaptured-local,
clang-diagnostic-float-conversion,
clang-diagnostic-implicit-float-conversion,
clang-diagnostic-conversion,
clang-diagnostic-shadow-all,
clang-diagnostic-call-to-pure-virtual-from-ctor-dtor,
clang-diagnostic-dangling,
clang-diagnostic-integer-overflow,
clang-diagnostic-invalid-noreturn,
clang-diagnostic-null-arithmetic,
clang-diagnostic-null-conversion,
clang-diagnostic-unsequenced,
clang-diagnostic-unreachable-code-aggressive,
clang-diagnostic-void-pointer-to-int-cast,
clang-diagnostic-writable-strings,
clang-diagnostic-mismatched-parameter-types,
clang-diagnostic-mismatched-return-types'
HeaderFilterRegex: '^.\/bagl\/.*$'
WarningsAsErrors: '*'
FormatStyle: file
CheckOptions:
- { key: readability-identifier-naming.ClassCase, value: lower_case}
- { key: readability-identifier-naming.ClassConstantCase, value: lower_case }
- { key: readability-identifier-naming.ConstexprVariableCase, value: lower_case }
- { key: readability-identifier-naming.EnumCase, value: lower_case }
- { key: readability-identifier-naming.EnumConstantCase, value: lower_case }
- { key: readability-identifier-naming.FunctionCase, value: lower_case }
- { key: readability-identifier-naming.GlobalConstantCase, value: lower_case }
- { key: readability-identifier-naming.NamespaceCase, value: lower_case }
- { key: readability-identifier-naming.StructCase, value: lower_case }
- { key: readability-identifier-naming.VariableCase, value: lower_case }
- { key: readability-identifier-naming.PrivateMemberSuffix, value: _ }
- { key: readability-identifier-naming.ProtectedMemberSuffix, value: _ }
- { key: performance-unnecessary-value-param.IncludeStyle, value: google}
- { key: readability-function-cognitive-complexity.Threshold, value: 100}
- { key: readability-function-cognitive-complexity.IgnoreMacros, value: true}