[PATCH] D20326: [clang-tidy] Fix a template function false positive in misc-unused-using-decls check.

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Wed May 18 02:39:34 PDT 2016


alexfh accepted this revision.
alexfh added a comment.
This revision is now accepted and ready to land.

LG


================
Comment at: clang-tidy/misc/UnusedUsingDeclsCheck.cpp:95
@@ +94,3 @@
+  if (auto *ULE = Result.Nodes.getNodeAs<UnresolvedLookupExpr>("used")) {
+    for (auto I = ULE->decls_begin(), E = ULE->decls_end(); I != E; ++I) {
+      if (auto *USD = dyn_cast<UsingShadowDecl>(I.getDecl()))
----------------
Range-based for loop, maybe?


http://reviews.llvm.org/D20326





More information about the cfe-commits mailing list