[Libreoffice-commits] core.git: compilerplugins/clang

Noel Grandin noel.grandin at collabora.co.uk
Tue Nov 28 08:32:36 UTC 2017


 compilerplugins/clang/unusedmethods.cxx |    9 ---------
 1 file changed, 9 deletions(-)

New commits:
commit 5eec6db4addd7cc665222e1a4d05c35b13719847
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Tue Nov 28 10:29:46 2017 +0200

    fix loplugin unusedmethods
    
    VisitCXXDeductionGuide is not part of our baseline clang
    
    Change-Id: I354a992456949975384d8ae1a81a07de9e886061

diff --git a/compilerplugins/clang/unusedmethods.cxx b/compilerplugins/clang/unusedmethods.cxx
index e33bb0c01c0a..1a707de5893a 100644
--- a/compilerplugins/clang/unusedmethods.cxx
+++ b/compilerplugins/clang/unusedmethods.cxx
@@ -118,7 +118,6 @@ public:
     bool TraverseFunctionDecl( FunctionDecl* );
     bool TraverseCXXMethodDecl( CXXMethodDecl* );
     bool TraverseCXXConversionDecl( CXXConversionDecl* );
-    bool TraverseCXXDeductionGuideDecl( CXXDeductionGuideDecl* );
 private:
     void logCallToRootMethods(const FunctionDecl* functionDecl, std::set<MyFuncInfo>& funcSet);
     MyFuncInfo niceName(const FunctionDecl* functionDecl);
@@ -388,14 +387,6 @@ bool UnusedMethods::TraverseCXXConversionDecl(CXXConversionDecl* f)
     currentFunctionDecl = copy;
     return ret;
 }
-bool UnusedMethods::TraverseCXXDeductionGuideDecl(CXXDeductionGuideDecl* f)
-{
-    auto copy = currentFunctionDecl;
-    currentFunctionDecl = f;
-    bool ret = RecursiveASTVisitor::TraverseCXXDeductionGuideDecl(f);
-    currentFunctionDecl = copy;
-    return ret;
-}
 
 loplugin::Plugin::Registration< UnusedMethods > X("unusedmethods", false);
 


More information about the Libreoffice-commits mailing list