[PATCH] D81552: [ASTMatchers] Added hasDirectBase and hasClass Matchers
Jan Korous via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 11 12:07:55 PDT 2020
jkorous added inline comments.
================
Comment at: clang/include/clang/ASTMatchers/ASTMatchers.h:3621
+/// \endcode
+AST_MATCHER_P(CXXBaseSpecifier, hasClassOrClassTemplate,
+ internal::Matcher<CXXRecordDecl>, InnerMatcher) {
----------------
I think we should just use `eachOf` matcher for this kind of composition.
https://clang.llvm.org/docs/LibASTMatchersReference.html#traversal-matchers
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81552/new/
https://reviews.llvm.org/D81552
More information about the cfe-commits
mailing list