From 6bcbe6e04d0ff61e3eec9eb01d3c535fd2f78a38 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Wed, 3 Sep 2014 13:30:28 +0000 Subject: [clang-tidy] Eliminate inline copies of InTemplateInstantiation matcher. llvm-svn: 217036 --- clang-tools-extra/clang-tidy/misc/UndelegatedConstructor.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'clang-tools-extra/clang-tidy/misc/UndelegatedConstructor.cpp') diff --git a/clang-tools-extra/clang-tidy/misc/UndelegatedConstructor.cpp b/clang-tools-extra/clang-tidy/misc/UndelegatedConstructor.cpp index 7e31e1bd9a7..143c27a98b0 100644 --- a/clang-tools-extra/clang-tidy/misc/UndelegatedConstructor.cpp +++ b/clang-tools-extra/clang-tidy/misc/UndelegatedConstructor.cpp @@ -60,9 +60,7 @@ void UndelegatedConstructorCheck::registerMatchers(MatchFinder *Finder) { constructExpr(hasDeclaration(constructorDecl(ofClass( recordDecl(baseOfBoundNode("parent")))))) .bind("construct"))), - unless(hasAncestor(decl( - anyOf(recordDecl(ast_matchers::isTemplateInstantiation()), - functionDecl(ast_matchers::isTemplateInstantiation())))))), + unless(isInTemplateInstantiation())), this); } -- cgit v1.2.3