Lines Matching refs:matcher
180 Intermezzo: Learn AST matcher basics
192 is a matcher to do exactly that, conveniently named ``binaryOperator``.
193 I'll give you one guess what this matcher does:
202 expand to 0. The matcher will also not match against calls to the
204 matcher to handle overloaded operators.
212 All matcher that are nouns describe entities in the AST and can be
223 Okay, on to using matchers for real. Let's start by defining a matcher
232 portion of the loop, so we can extend the matcher to
246 It is fairly easy to read and understand the matcher definition ("match
249 is more difficult. Note that this matcher will not match loops whose
253 The last step is giving the matcher a name and binding the ``ForStmt``
325 Our simple matcher is capable of discovering for loops, but we would
341 increments this same variable. The matcher for (2) is straightforward:
345 Unfortunately, such a matcher is impossible to write. Matchers contain
350 In any case, we can start building this sub-matcher. We can require that
369 Furthermore, we can restrict our matcher to only match if the
389 that our program, outfitted with the new matcher, only prints out loops
393 Now, we just need to add a matcher to check if the condition part of the
439 ``i``. Thankfully, the matcher library offers a solution to this problem
440 in the form of ``ignoringParenImpCasts``, which instructs the matcher to
459 So far, the matcher callback isn't very interesting: it just dumps the