[Libreoffice-commits] core.git: compilerplugins/clang
Stephan Bergmann
sbergman at redhat.com
Mon Dec 4 17:42:36 UTC 2017
compilerplugins/clang/salcall.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 5940f3020e513c769c5cf452b49c1f211358c525
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Dec 4 18:41:09 2017 +0100
-Werror=unused-function
Change-Id: I411a134daef6ad061ab54b300e379b882395905b
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);
}
More information about the Libreoffice-commits
mailing list