]> granicus.if.org Git - clang/commit
Implements the convenience matcher findAll.
authorManuel Klimek <klimek@google.com>
Mon, 4 Feb 2013 10:59:20 +0000 (10:59 +0000)
committerManuel Klimek <klimek@google.com>
Mon, 4 Feb 2013 10:59:20 +0000 (10:59 +0000)
commit152ea0e4711f7aed75f6a1d1995b0bd94eb31c98
tree593846436bf521d7799fceb1166334971b91ddac
parent7387673f83b8b37f660422947c9990778ba88193
Implements the convenience matcher findAll.

We found that findAll has been implemented incorrectly multiple times
by various people using the matchers. To prevent further wasted
development effort, it makes sense to add it as convenience matcher
implemented as eachOf(m, forEachDescendant(m)).

This patch also updates the docs with the new matchers.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174320 91177308-0d34-0410-b5e6-96231b3b80d8
docs/LibASTMatchersReference.html
include/clang/ASTMatchers/ASTMatchers.h
unittests/ASTMatchers/ASTMatchersTest.cpp