forked from OSchip/llvm-project
[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:
parent
173bc2bb7f
commit
daa515e6a1
|
@ -23,7 +23,8 @@ void PostfixOperatorCheck::registerMatchers(MatchFinder *Finder) {
|
|||
return;
|
||||
|
||||
Finder->addMatcher(functionDecl(anyOf(hasOverloadedOperatorName("++"),
|
||||
hasOverloadedOperatorName("--")))
|
||||
hasOverloadedOperatorName("--")),
|
||||
unless(isInstantiated()))
|
||||
.bind("decl"),
|
||||
this);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue