[PATCH] D105973: [ASTMatchers] NFC: Fix the annotation.

gehry via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 14 05:35:05 PDT 2021


Sockke created this revision.
Sockke added reviewers: ymandel, aaron.ballman, MTC.
Sockke requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

The annotation about ignoringImpCasts is wrong, which will cause misunderstanding. Fix it.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D105973

Files:
  clang/include/clang/ASTMatchers/ASTMatchers.h


Index: clang/include/clang/ASTMatchers/ASTMatchers.h
===================================================================
--- clang/include/clang/ASTMatchers/ASTMatchers.h
+++ clang/include/clang/ASTMatchers/ASTMatchers.h
@@ -913,7 +913,7 @@
 ///    varDecl(hasInitializer(integerLiteral()))
 ///    varDecl(hasInitializer(declRefExpr()))
 /// \endcode
-/// only match the declarations for b, c, and d.
+/// only match the declarations for a.
 AST_MATCHER_P(Expr, ignoringImpCasts,
               internal::Matcher<Expr>, InnerMatcher) {
   return InnerMatcher.matches(*Node.IgnoreImpCasts(), Finder, Builder);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105973.358569.patch
Type: text/x-patch
Size: 610 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210714/2109043b/attachment-0001.bin>


More information about the cfe-commits mailing list