[PATCH] D23004: [ASTMatchers] Add matchers canReferToDecl() and hasUnderlyingDecl()
Alexander Kornienko via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 1 10:11:31 PDT 2016
alexfh added a subscriber: alexfh.
================
Comment at: include/clang/ASTMatchers/ASTMatchers.h:2440
@@ +2439,3 @@
+
+ return (UnderlyingDecl != nullptr &&
+ InnerMatcher.matches(*UnderlyingDecl, Finder, Builder));
----------------
nit: Parentheses are superfluous here.
================
Comment at: include/clang/ASTMatchers/ASTMatchers.h:2807
@@ +2806,3 @@
+/// \endcode
+/// unresolvedLookupExpr(canReferToDecl(functionDecl()))
+/// matches \c foo in \c foo(t);
----------------
Please add an `unresolvedLookupExpr` that this matcher doesn't match (maybe change the matcher to make it easier).
https://reviews.llvm.org/D23004
More information about the cfe-commits
mailing list