Changeset View
Changeset View
Standalone View
Standalone View
clang/docs/LibASTMatchersReference.html
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 7,695 Lines • ▼ Show 20 Lines | Given | ||||
long e = (long) 0l; | long e = (long) 0l; | ||||
The matchers | The matchers | ||||
varDecl(hasInitializer(ignoringImpCasts(integerLiteral()))) | varDecl(hasInitializer(ignoringImpCasts(integerLiteral()))) | ||||
varDecl(hasInitializer(ignoringImpCasts(declRefExpr()))) | varDecl(hasInitializer(ignoringImpCasts(declRefExpr()))) | ||||
would match the declarations for a, b, c, and d, but not e. | 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> | ||||
<tr><td>Matcher<<a href="https://clang.llvm.org/doxygen/classclang_1_1Expr.html">Expr</a>></td><td class="name" onclick="toggle('ignoringImplicit0')"><a name="ignoringImplicit0Anchor">ignoringImplicit</a></td><td>Matcher<<a href="https://clang.llvm.org/doxygen/classclang_1_1Expr.html">Expr</a>> InnerMatcher</td></tr> | <tr><td>Matcher<<a href="https://clang.llvm.org/doxygen/classclang_1_1Expr.html">Expr</a>></td><td class="name" onclick="toggle('ignoringImplicit0')"><a name="ignoringImplicit0Anchor">ignoringImplicit</a></td><td>Matcher<<a href="https://clang.llvm.org/doxygen/classclang_1_1Expr.html">Expr</a>> InnerMatcher</td></tr> | ||||
<tr><td colspan="4" class="doc" id="ignoringImplicit0"><pre>Matches expressions that match InnerMatcher after any implicit AST | <tr><td colspan="4" class="doc" id="ignoringImplicit0"><pre>Matches expressions that match InnerMatcher after any implicit AST | ||||
nodes are stripped off. | nodes are stripped off. | ||||
Parentheses and explicit casts are not discarded. | Parentheses and explicit casts are not discarded. | ||||
▲ Show 20 Lines • Show All 1,726 Lines • Show Last 20 Lines |