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)
commitabf4371339862cb739ae7dc8595e12cba7b7d6c3
treecb8136b629998c8c7ed672362f32f2dd562cf0c7
parentfa67ed47e1e87be650afb4d242ec8e44019437a0
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.

llvm-svn: 174320
clang/docs/LibASTMatchersReference.html
clang/include/clang/ASTMatchers/ASTMatchers.h
clang/unittests/ASTMatchers/ASTMatchersTest.cpp