You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .clang-tidy
+9-8
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,8 @@ Checks: [
27
27
'-bugprone-not-null-terminated-result',
28
28
'-bugprone-reserved-identifier', # useful but too slow, TODO retry when https://reviews.llvm.org/rG1c282052624f9d0bd273bde0b47b30c96699c6c7 is merged
29
29
'-bugprone-unchecked-optional-access',
30
+
'-bugprone-crtp-constructor-accessibility',
31
+
'-bugprone-suspicious-stringview-data-usage',
30
32
31
33
'-cert-dcl16-c',
32
34
'-cert-dcl37-c',
@@ -36,6 +38,7 @@ Checks: [
36
38
'-cert-msc51-cpp',
37
39
'-cert-oop54-cpp',
38
40
'-cert-oop57-cpp',
41
+
'-cert-err33-c', # Misreports on clang-19: it warns about all functions containing 'remove' in the name, not only about the standard library.
39
42
40
43
'-clang-analyzer-optin.performance.Padding',
41
44
@@ -94,10 +97,12 @@ Checks: [
94
97
'-modernize-pass-by-value',
95
98
'-modernize-return-braced-init-list',
96
99
'-modernize-use-auto',
100
+
'-modernize-use-constraints', # This is a good check, but clang-tidy crashes, see https://github.com/llvm/llvm-project/issues/91872
97
101
'-modernize-use-default-member-init',
98
102
'-modernize-use-emplace',
99
103
'-modernize-use-nodiscard',
100
104
'-modernize-use-trailing-return-type',
105
+
'-modernize-use-designated-initializers',
101
106
102
107
'-performance-enum-size',
103
108
'-performance-inefficient-string-concatenation',
@@ -121,7 +126,8 @@ Checks: [
121
126
'-readability-magic-numbers',
122
127
'-readability-named-parameter',
123
128
'-readability-redundant-declaration',
124
-
'-readability-redundant-inline-specifier',
129
+
'-readability-redundant-inline-specifier', # useful but incompatible with __attribute((always_inline))__ (aka. ALWAYS_INLINE, base/base/defines.h).
130
+
# ALWAYS_INLINE only has an effect if combined with `inline`: https://godbolt.org/z/Eefd74qdM
125
131
'-readability-redundant-member-init', # Useful but triggers another problem. Imagine a struct S with multiple String members. Structs are often instantiated via designated
126
132
# initializer S s{.s1 = [...], .s2 = [...], [...]}. In this case, compiler warning `missing-field-initializers` requires to specify all members which are not in-struct
127
133
# initialized (example: s1 in struct S { String s1; String s2{};}; is not in-struct initialized, therefore it must be specified at instantiation time). As explicitly
@@ -132,12 +138,7 @@ Checks: [
132
138
'-readability-uppercase-literal-suffix',
133
139
'-readability-use-anyofallof',
134
140
135
-
'-zircon-*',
136
-
137
-
# This is a good check, but clang-tidy crashes, see https://github.com/llvm/llvm-project/issues/91872
0 commit comments