CXXDestructorDecl is already handled

...a few lines up, together with CXXConstructorDecl

Change-Id: Id9afd4d3936b2efb92de3c6ab950da78d876a5a8
This commit is contained in:
Stephan Bergmann 2016-11-14 16:47:25 +01:00
parent a796ca45e7
commit 682899e313

View File

@ -85,9 +85,6 @@ bool UnnecessaryOverride::VisitCXXMethodDecl(const CXXMethodDecl* methodDecl)
return true;
}
}
if (dyn_cast<CXXDestructorDecl>(methodDecl)) {
return true;
}
// sometimes the disambiguation happens in a base class
StringRef aFileName = compiler.getSourceManager().getFilename(compiler.getSourceManager().getSpellingLoc(methodDecl->getLocStart()));
if (aFileName == SRCDIR "/comphelper/source/property/propertycontainer.cxx")