Fix documentation; NFC

The documentation about ignoringImpCasts is wrong, which can cause
misunderstandings. This patch fixes it.
This commit is contained in:
liuke 2021-07-15 09:38:05 -04:00 committed by Aaron Ballman
parent 3e6c383dc6
commit 034b94bb71
2 changed files with 2 additions and 2 deletions

View 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>

View 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);