summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/misc/UndelegatedConstructor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/clang-tidy/misc/UndelegatedConstructor.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/misc/UndelegatedConstructor.cpp4
1 files changed, 1 insertions, 3 deletions
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);
}
OpenPOWER on IntegriCloud