forked from OSchip/llvm-project
Fix documentation; NFC
The documentation about ignoringImpCasts is wrong, which can cause misunderstandings. This patch fixes it.
This commit is contained in:
parent
3e6c383dc6
commit
034b94bb71
|
@ -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>
|
||||
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue