summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/salcall.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-12-04 18:41:09 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-12-04 18:41:09 +0100
commit5940f3020e513c769c5cf452b49c1f211358c525 (patch)
treede72a60c15a4cc8a620cf9b5998696c405334397 /compilerplugins/clang/salcall.cxx
parent8aeb8825cbb0ffba2b214624a9869ce8e6e0390a (diff)
-Werror=unused-function
Change-Id: I411a134daef6ad061ab54b300e379b882395905b
Diffstat (limited to 'compilerplugins/clang/salcall.cxx')
-rw-r--r--compilerplugins/clang/salcall.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/compilerplugins/clang/salcall.cxx b/compilerplugins/clang/salcall.cxx
index f982d7f41b11..2c34f8281b96 100644
--- a/compilerplugins/clang/salcall.cxx
+++ b/compilerplugins/clang/salcall.cxx
@@ -57,8 +57,10 @@ 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;
@@ -326,6 +328,7 @@ bool SalCall::isSalCallFunction(FunctionDecl const* functionDecl, SourceLocation
return true;
}
+#if 0
bool SalCall::rewrite(SourceLocation locBegin)
{
if (!rewriter)
@@ -363,6 +366,7 @@ bool SalCall::checkOverlap(SourceRange range)
mvModifiedRanges.emplace_back(p1, p2);
return true;
}
+#endif
static loplugin::Plugin::Registration<SalCall> reg("salcall", true);
}