[clang-tidy] Eliminate inline copies of InTemplateInstantiation matcher.
llvm-svn: 217036
diff --git a/clang-tools-extra/clang-tidy/google/ExplicitMakePairCheck.cpp b/clang-tools-extra/clang-tidy/google/ExplicitMakePairCheck.cpp
index 1331c57..d09be29 100644
--- a/clang-tools-extra/clang-tidy/google/ExplicitMakePairCheck.cpp
+++ b/clang-tools-extra/clang-tidy/google/ExplicitMakePairCheck.cpp
@@ -30,9 +30,7 @@
// Look for std::make_pair with explicit template args. Ignore calls in
// templates.
Finder->addMatcher(
- callExpr(unless(hasAncestor(decl(anyOf(
- recordDecl(ast_matchers::isTemplateInstantiation()),
- functionDecl(ast_matchers::isTemplateInstantiation()))))),
+ callExpr(unless(isInTemplateInstantiation()),
callee(expr(ignoringParenImpCasts(
declRefExpr(hasExplicitTemplateArgs(),
to(functionDecl(hasName("::std::make_pair"))))