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: rule_packages/cpp/DeadCode.json
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -238,7 +238,10 @@
238
238
"tags": [
239
239
"readability",
240
240
"maintainability"
241
-
]
241
+
],
242
+
"implementation_scope": {
243
+
"description": "In limited cases, this query can raise false-positives for variables that are defined as constexpr and used in an expression to instantiate a template."
244
+
}
242
245
},
243
246
{
244
247
"description": "Unused variables complicate the program and can indicate a possible mistake on the part of the programmer.",
Copy file name to clipboardExpand all lines: rule_packages/cpp/Templates.json
-27Lines changed: 0 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -190,33 +190,6 @@
190
190
}
191
191
],
192
192
"title": "In a class template with a dependent base, any name that may be found in that dependent base shall be referred to using a qualified-id or this->."
193
-
},
194
-
"M0-1-3": {
195
-
"properties": {
196
-
"allocated-target": [
197
-
"implementation"
198
-
],
199
-
"enforcement": "automated",
200
-
"obligation": "required"
201
-
},
202
-
"queries": [
203
-
{
204
-
"description": "Unused variables complicate the program and can indicate a possible mistake on the part of the programmer.",
205
-
"kind": "problem",
206
-
"name": "A project shall not contain unused local variables",
207
-
"precision": "very-high",
208
-
"severity": "warning",
209
-
"short_name": "UnusedLocalVariable",
210
-
"tags": [
211
-
"maintainability",
212
-
"readability"
213
-
],
214
-
"implementation_scope": {
215
-
"description": "In limited cases, this query can raise false-positives for variables that are defined as constexpr and used in an expression to instantiate a template."
216
-
}
217
-
}
218
-
],
219
-
"title": "A project shall not contain unused local variables."
0 commit comments