[PATCH] D61552: [clang] Adapt ASTMatcher to explicit(bool) specifier
Tyker via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 19 09:03:05 PDT 2019
Tyker marked an inline comment as done.
Tyker added inline comments.
================
Comment at: clang/include/clang/ASTMatchers/ASTMatchers.h:6190
+/// cxxDeductionGuideDecl(isExplicit()) will match #6, but not #5.
+/// cxxConstructorDecl(isExplicit()) will match #8, but not #7 or #9.
+AST_POLYMORPHIC_MATCHER(isExplicit, AST_POLYMORPHIC_SUPPORTED_TYPES(
----------------
aaron.ballman wrote:
> Tyker wrote:
> > aaron.ballman wrote:
> > > Why won't it match #2?
> > #2 matches.
> I figured it would -- the comment should be updated to correct that (and then generate the docs again).
but the comment says it matches
> cxxConstructorDecl(isExplicit()) will match #2, but not #1.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61552/new/
https://reviews.llvm.org/D61552
More information about the cfe-commits
mailing list