From 682899e313bb5a201289dfcfd30cc7caec0945a6 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 14 Nov 2016 16:47:25 +0100 Subject: CXXDestructorDecl is already handled ...a few lines up, together with CXXConstructorDecl Change-Id: Id9afd4d3936b2efb92de3c6ab950da78d876a5a8 --- compilerplugins/clang/unnecessaryoverride.cxx | 3 --- 1 file changed, 3 deletions(-) (limited to 'compilerplugins') 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(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") -- cgit