Fix documentation; NFC
authorliuke <liuke.gehry@bytedance.com>
Thu, 15 Jul 2021 13:38:05 +0000 (09:38 -0400)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 15 Jul 2021 13:38:05 +0000 (09:38 -0400)
The documentation about ignoringImpCasts is wrong, which can cause
misunderstandings. This patch fixes it.

clang/docs/LibASTMatchersReference.html
clang/include/clang/ASTMatchers/ASTMatchers.h

index 73309fb..9999565 100644 (file)
@@ -7701,7 +7701,7 @@ would match the declarations for a, b, c, and d, but not e.
 While
    varDecl(hasInitializer(integerLiteral()))
    varDecl(hasInitializer(declRefExpr()))
-only match the declarations for b, c, and d.
+only match the declarations for a.
 </pre></td></tr>
 
 
index a13827d..8e3ee6c 100644 (file)
@@ -913,7 +913,7 @@ AST_MATCHER_P(Expr, ignoringImplicit, internal::Matcher<Expr>,
 ///    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);