From: liuke Date: Thu, 15 Jul 2021 13:38:05 +0000 (-0400) Subject: Fix documentation; NFC X-Git-Tag: llvmorg-14-init~1379 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=034b94bb7161c64234e4ec35bf49428c3a1f8f0a;p=platform%2Fupstream%2Fllvm.git Fix documentation; NFC The documentation about ignoringImpCasts is wrong, which can cause misunderstandings. This patch fixes it. --- diff --git a/clang/docs/LibASTMatchersReference.html b/clang/docs/LibASTMatchersReference.html index 73309fb..9999565 100644 --- a/clang/docs/LibASTMatchersReference.html +++ b/clang/docs/LibASTMatchersReference.html @@ -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. diff --git a/clang/include/clang/ASTMatchers/ASTMatchers.h b/clang/include/clang/ASTMatchers/ASTMatchers.h index a13827d..8e3ee6c 100644 --- a/clang/include/clang/ASTMatchers/ASTMatchers.h +++ b/clang/include/clang/ASTMatchers/ASTMatchers.h @@ -913,7 +913,7 @@ AST_MATCHER_P(Expr, ignoringImplicit, internal::Matcher, /// 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, InnerMatcher) { return InnerMatcher.matches(*Node.IgnoreImpCasts(), Finder, Builder);