[PATCH] D22803: [clang-tidy] Fix an unused-using-decl false positive about template arguments infunction call expression.

Manuel Klimek via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 28 09:43:13 PDT 2016


klimek added a subscriber: klimek.

================
Comment at: clang-tidy/misc/UnusedUsingDeclsCheck.cpp:83
@@ -80,3 +82,3 @@
   if (const auto *Used = Result.Nodes.getNodeAs<NamedDecl>("used")) {
-    if (const auto *Specialization =
-            dyn_cast<ClassTemplateSpecializationDecl>(Used))
+    if (const auto *FD = dyn_cast<FunctionDecl>(Used)) {
+      // There is no straightforward way to match template arguments in a
----------------
I thought the idea was to make an overload for hasTemplateArgument to work on FunctionDecl. Any specific reason not to make the matchers better?


https://reviews.llvm.org/D22803





More information about the cfe-commits mailing list