Lines Matching defs:match
40 // that match on every statement over a very large codebase.
48 // AST node twice. This struct is the key for looking up match
70 // Used to store the result of a match and possibly bound nodes.
102 // Returns true if a match is found in the subtree rooted at the
132 // no match in this recursive branch, the result set is empty
159 // hierarchy level. Thus, we try to match either of them.
164 // Match the Type.
165 if (!match(*TypeNode))
171 // on the same hierarchy level. Thus, we try to match all of them.
176 // Match the Type.
177 if (!match(*TypeLocNode.getType()))
179 // Match the QualType.
180 if (!match(TypeLocNode.getType()))
193 if (!match(*NNS.getNestedNameSpecifier()))
246 // returns, i.e. if no match is found or 'Bind' is 'BK_All'.
248 bool match(const T &Node) {
258 return false; // Abort as soon as a match is found.
264 // After the first match the matcher succeeds.
278 if (!match(Node))
294 // Controls the outermost traversal of the AST and allows to match multiple
391 // Note that we key on the bindings *before* the match.
462 void match(const ast_type_traits::DynTypedNode &Node) {
465 match(*N);
467 match(*N);
469 match(*N);
471 match(*N);
473 match(*N);
475 match(*N);
477 match(*N);
481 template <typename T> void match(const T &Node) {
612 // the result of the match along the way, as long as there is only a single
634 // calls to match might invalidate the result cache iterators.
654 // match above.
694 // the aggregated bound nodes for each match.
751 // Maps (matcher, node) -> the match result for memoization.
817 // current declaration did not match, we can safely return false.
835 match(*DeclNode);
843 match(*StmtNode);
848 match(TypeNode);
854 // We still want to find those types via matchers, so we match them here. Note
858 match(TypeLocNode);
859 match(TypeLocNode.getType());
864 match(*NNS);
870 match(NNS);
871 // We only match the nested name specifier here (as opposed to traversing it)
874 match(*NNS.getNestedNameSpecifier());
977 void MatchFinder::match(const clang::ast_type_traits::DynTypedNode &Node,
981 Visitor.match(Node);