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

LG with one nit.

Thank you!


================
Comment at: clang-tidy/misc/MiscTidyModule.cpp:123
@@ -121,1 +122,3 @@
+    CheckFactories.registerCheck<UnusedUsingDeclsCheck>(
+        "misc-unused-using-decls");
     CheckFactories.registerCheck<VirtualNearMissCheck>(
----------------
Fair enough. Let's go this way then.

================
Comment at: clang-tidy/misc/UnusedUsingDeclsCheck.cpp:67
@@ +66,3 @@
+        << FixItHint::CreateRemoval(FoundRanges[FoundDecl.first]);
+  }
+}
----------------
`FoundDecls` should be cleared at the end. There are some cases when a check 
can be used multiple times (e.g. in unit tests). Though we're not adding unit 
tests here, I think, we shouldn't hide this kind of a surprise in the code ;)


http://reviews.llvm.org/D19259



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to