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
|
While
|
||||||
varDecl(hasInitializer(integerLiteral()))
|
varDecl(hasInitializer(integerLiteral()))
|
||||||
varDecl(hasInitializer(declRefExpr()))
|
varDecl(hasInitializer(declRefExpr()))
|
||||||
only match the declarations for b, c, and d.
|
only match the declarations for a.
|
||||||
</pre></td></tr>
|
</pre></td></tr>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -913,7 +913,7 @@ AST_MATCHER_P(Expr, ignoringImplicit, internal::Matcher<Expr>,
|
||||||
/// varDecl(hasInitializer(integerLiteral()))
|
/// varDecl(hasInitializer(integerLiteral()))
|
||||||
/// varDecl(hasInitializer(declRefExpr()))
|
/// varDecl(hasInitializer(declRefExpr()))
|
||||||
/// \endcode
|
/// \endcode
|
||||||
/// only match the declarations for b, c, and d.
|
/// only match the declarations for a.
|
||||||
AST_MATCHER_P(Expr, ignoringImpCasts,
|
AST_MATCHER_P(Expr, ignoringImpCasts,
|
||||||
internal::Matcher<Expr>, InnerMatcher) {
|
internal::Matcher<Expr>, InnerMatcher) {
|
||||||
return InnerMatcher.matches(*Node.IgnoreImpCasts(), Finder, Builder);
|
return InnerMatcher.matches(*Node.IgnoreImpCasts(), Finder, Builder);
|
||||||
|
|
Loading…
Reference in New Issue