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

Noel Grandin noel.grandin at collabora.co.uk
Tue Dec 5 07:17:13 UTC 2017


 compilerplugins/clang/salcall.cxx |    4 ----
 1 file changed, 4 deletions(-)

New commits:
commit 720cc05a76510964b779a30366d48fb854984d06
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Tue Dec 5 09:13:18 2017 +0200

    fix compile of salcall plugin
    
    changes from sberg and myself crossed paths in the night
    
    Change-Id: I2606902f84739e552b2aad292e63e7b8e6757965

diff --git a/compilerplugins/clang/salcall.cxx b/compilerplugins/clang/salcall.cxx
index 071e3a87841a..08b0230a9d49 100644
--- a/compilerplugins/clang/salcall.cxx
+++ b/compilerplugins/clang/salcall.cxx
@@ -57,10 +57,8 @@ public:
 
 private:
     void checkForFunctionDecl(Expr const*, bool bCheckOnly = false);
-#if 0
     bool rewrite(SourceLocation);
     bool checkOverlap(SourceRange);
-#endif
     bool isSalCallFunction(FunctionDecl const* functionDecl, SourceLocation* pLoc = nullptr);
 
     std::set<FunctionDecl const*> m_addressOfSet;
@@ -311,7 +309,6 @@ bool SalCall::isSalCallFunction(FunctionDecl const* functionDecl, SourceLocation
     return true;
 }
 
-#if 0
 bool SalCall::rewrite(SourceLocation locBegin)
 {
     if (!rewriter)
@@ -353,7 +350,6 @@ bool SalCall::checkOverlap(SourceRange range)
     mvModifiedRanges.emplace_back(p1, p2);
     return true;
 }
-#endif
 
 static loplugin::Plugin::Registration<SalCall> reg("salcall", false);
 }


More information about the Libreoffice-commits mailing list