alexfh added inline comments.
================
Comment at: clang-tidy/misc/UnusedUsingDeclsCheck.cpp:24
@@ +23,3 @@
+AST_MATCHER(CallExpr, hasUnresolvedLookupExpr) {
+ return isa<UnresolvedLookupExpr>(Node.getCallee());
+}
----------------
I think, we should use a node matcher for `UnresolvedLookupExpr` and instead
use `callExpr(callee(unresolvedLookupExpr().bind("something")))`.
Also, I would create the new matcher in the ASTMatchers.h right away, together
with a test and docs. But if you want this patch to be in soon, feel free to
move the matcher to the matchers library in a follow up.
Repository:
rL LLVM
http://reviews.llvm.org/D20326
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits