]> granicus.if.org Git - clang/commit
[ASTMatchers] Use provided target NodeKind instead of inferring it from the matchers.
authorSamuel Benzaquen <sbenza@google.com>
Fri, 17 Jul 2015 16:05:27 +0000 (16:05 +0000)
committerSamuel Benzaquen <sbenza@google.com>
Fri, 17 Jul 2015 16:05:27 +0000 (16:05 +0000)
commitd6a363a733682e145306fc1e42152e8519166b48
treec985ab6aced408e527599316cd1fabe8a9ab2474
parent61690d9018c8da94a7812ae53d501af17f0cf265
[ASTMatchers] Use provided target NodeKind instead of inferring it from the matchers.

Individual matchers might not be convertible to each other's kind, but
they might still all be convertible to the target kind.
All the callers already know the target kind, so just pass it down.

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