[clang-tidy] Update `TransformerClangTidyCheck` to use new `buildMatchers` functionality.

Summary:
`buildMatchers` is the new, more general way to extract the matcher from a rule.
This change migrates the code to use it instead of `buildMatcher`.

Reviewers: gribozavr

Subscribers: xazax.hun, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D65879

llvm-svn: 368700
This commit is contained in:
Yitzhak Mandelbaum 2019-08-13 14:48:13 +00:00
parent 07e6613756
commit 1896a31dd3
1 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,8 @@ void TransformerClangTidyCheck::registerPPCallbacks(
void TransformerClangTidyCheck::registerMatchers(
ast_matchers::MatchFinder *Finder) {
if (Rule)
Finder->addDynamicMatcher(tooling::detail::buildMatcher(*Rule), this);
for (auto &Matcher : tooling::detail::buildMatchers(*Rule))
Finder->addDynamicMatcher(Matcher, this);
}
void TransformerClangTidyCheck::check(