]> granicus.if.org Git - clang/commit
This commit combines three patches to the ASTMatchers.
authorDaniel Jasper <djasper@google.com>
Thu, 12 Jul 2012 08:50:38 +0000 (08:50 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 12 Jul 2012 08:50:38 +0000 (08:50 +0000)
commit6a12449ec8862211856447d3df4c082a346339f2
tree1118338c90fa9229e6e427188ba48bba086c9b3d
parentc7bd9fbecd50c1fcdc1092e37023dbb8677d4eed
This commit combines three patches to the ASTMatchers.

One adds matchers for the various parts of a for loop (initializer, condition,
increment), as well as extending the hasBody matcher to work for while and
do-while loops. The second patch adds an isInteger matcher for types.
The third patch fixes a bug in allOf, where a few of the name chages
(AllOf --> allOf) had been missed.

All matchers come with unit tests.

Patches by Sam Panzer!

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