summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/google/NamedParameterCheck.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/clang-tidy/google/NamedParameterCheck.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/google/NamedParameterCheck.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/clang-tools-extra/clang-tidy/google/NamedParameterCheck.cpp b/clang-tools-extra/clang-tidy/google/NamedParameterCheck.cpp
index 4a06dc8d6bb..62f3096cab0 100644
--- a/clang-tools-extra/clang-tidy/google/NamedParameterCheck.cpp
+++ b/clang-tools-extra/clang-tidy/google/NamedParameterCheck.cpp
@@ -19,13 +19,7 @@ namespace tidy {
namespace readability {
void NamedParameterCheck::registerMatchers(ast_matchers::MatchFinder *Finder) {
- Finder->addMatcher(
- functionDecl(
- unless(hasAncestor(decl(
- anyOf(recordDecl(ast_matchers::isTemplateInstantiation()),
- functionDecl(ast_matchers::isTemplateInstantiation()))))))
- .bind("decl"),
- this);
+ Finder->addMatcher(functionDecl(unless(isInstantiated())).bind("decl"), this);
}
void NamedParameterCheck::check(const MatchFinder::MatchResult &Result) {
OpenPOWER on IntegriCloud