[clang] 034b94b - Fix documentation; NFC
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 15 06:39:03 PDT 2021
Author: liuke
Date: 2021-07-15T09:38:05-04:00
New Revision: 034b94bb7161c64234e4ec35bf49428c3a1f8f0a
URL: https://github.com/llvm/llvm-project/commit/034b94bb7161c64234e4ec35bf49428c3a1f8f0a
DIFF: https://github.com/llvm/llvm-project/commit/034b94bb7161c64234e4ec35bf49428c3a1f8f0a.diff
LOG: Fix documentation; NFC
The documentation about ignoringImpCasts is wrong, which can cause
misunderstandings. This patch fixes it.
Added:
Modified:
clang/docs/LibASTMatchersReference.html
clang/include/clang/ASTMatchers/ASTMatchers.h
Removed:
################################################################################
diff --git a/clang/docs/LibASTMatchersReference.html b/clang/docs/LibASTMatchersReference.html
index 73309fb081f96..9999565f7f261 100644
--- a/clang/docs/LibASTMatchersReference.html
+++ b/clang/docs/LibASTMatchersReference.html
@@ -7701,7 +7701,7 @@ <h2 id="traversal-matchers">AST Traversal Matchers</h2>
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>
diff --git a/clang/include/clang/ASTMatchers/ASTMatchers.h b/clang/include/clang/ASTMatchers/ASTMatchers.h
index a13827df4405a..8e3ee6cb9e7e7 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<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);
More information about the cfe-commits
mailing list