summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-11-14 16:47:25 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-11-14 16:47:25 +0100
commit682899e313bb5a201289dfcfd30cc7caec0945a6 (patch)
tree78a51e1aebfec2e9086f8d0dccf260303ed7b069 /compilerplugins
parenta796ca45e7cd26b5fd9c3e99ae9ceed41a3d9adf (diff)
CXXDestructorDecl is already handled
...a few lines up, together with CXXConstructorDecl Change-Id: Id9afd4d3936b2efb92de3c6ab950da78d876a5a8
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/unnecessaryoverride.cxx3
1 files changed, 0 insertions, 3 deletions
diff --git a/compilerplugins/clang/unnecessaryoverride.cxx b/compilerplugins/clang/unnecessaryoverride.cxx
index 953abcb65fd9..64239a62746f 100644
--- a/compilerplugins/clang/unnecessaryoverride.cxx
+++ b/compilerplugins/clang/unnecessaryoverride.cxx
@@ -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")