Kaydet (Commit) 720cc05a authored tarafından Noel Grandin's avatar Noel Grandin

fix compile of salcall plugin

changes from sberg and myself crossed paths in the night

Change-Id: I2606902f84739e552b2aad292e63e7b8e6757965
üst eff70347
...@@ -57,10 +57,8 @@ public: ...@@ -57,10 +57,8 @@ public:
private: private:
void checkForFunctionDecl(Expr const*, bool bCheckOnly = false); void checkForFunctionDecl(Expr const*, bool bCheckOnly = false);
#if 0
bool rewrite(SourceLocation); bool rewrite(SourceLocation);
bool checkOverlap(SourceRange); bool checkOverlap(SourceRange);
#endif
bool isSalCallFunction(FunctionDecl const* functionDecl, SourceLocation* pLoc = nullptr); bool isSalCallFunction(FunctionDecl const* functionDecl, SourceLocation* pLoc = nullptr);
std::set<FunctionDecl const*> m_addressOfSet; std::set<FunctionDecl const*> m_addressOfSet;
...@@ -311,7 +309,6 @@ bool SalCall::isSalCallFunction(FunctionDecl const* functionDecl, SourceLocation ...@@ -311,7 +309,6 @@ bool SalCall::isSalCallFunction(FunctionDecl const* functionDecl, SourceLocation
return true; return true;
} }
#if 0
bool SalCall::rewrite(SourceLocation locBegin) bool SalCall::rewrite(SourceLocation locBegin)
{ {
if (!rewriter) if (!rewriter)
...@@ -353,7 +350,6 @@ bool SalCall::checkOverlap(SourceRange range) ...@@ -353,7 +350,6 @@ bool SalCall::checkOverlap(SourceRange range)
mvModifiedRanges.emplace_back(p1, p2); mvModifiedRanges.emplace_back(p1, p2);
return true; return true;
} }
#endif
static loplugin::Plugin::Registration<SalCall> reg("salcall", false); static loplugin::Plugin::Registration<SalCall> reg("salcall", false);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment