[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)
commitb063f5c7e173a02d7eaa39387ed8f06c2026a70b
tree1a167bda028c3f7faa4bb12bc228a038cca0e3ea
parent2bec8500ef9f558d9bc61ec90d4a4f64625e86dc
[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.

llvm-svn: 242534
clang/include/clang/ASTMatchers/ASTMatchersInternal.h
clang/lib/ASTMatchers/ASTMatchersInternal.cpp
clang/lib/ASTMatchers/Dynamic/VariantValue.cpp
clang/unittests/ASTMatchers/ASTMatchersTest.cpp