[clang-tidy] Ignore matches in template instantiations (cert-dcl21-cpp)

The test fails with a local modification to
clang-tidy/ClangTidyDiagnosticConsumer.cpp to include fixes into the key when
deduplicating the warnings.

llvm-svn: 347495
This commit is contained in:
Alexander Kornienko 2018-11-23 14:30:14 +00:00
parent 173bc2bb7f
commit daa515e6a1
1 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,8 @@ void PostfixOperatorCheck::registerMatchers(MatchFinder *Finder) {
return;
Finder->addMatcher(functionDecl(anyOf(hasOverloadedOperatorName("++"),
hasOverloadedOperatorName("--")))
hasOverloadedOperatorName("--")),
unless(isInstantiated()))
.bind("decl"),
this);
}