summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-12-05 09:13:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-12-05 09:15:48 +0200
commit720cc05a76510964b779a30366d48fb854984d06 (patch)
tree84f0a5f3e0e24dcb580597e57c028563184d6b72
parenteff70347190a6642fd62a9e0b20e4366c39fbc7a (diff)
fix compile of salcall plugin
changes from sberg and myself crossed paths in the night Change-Id: I2606902f84739e552b2aad292e63e7b8e6757965
-rw-r--r--compilerplugins/clang/salcall.cxx4
1 files changed, 0 insertions, 4 deletions
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);
}