[Libreoffice-commits] core.git: compilerplugins/clang
Stephan Bergmann
sbergman at redhat.com
Mon Jun 13 11:43:39 UTC 2016
compilerplugins/clang/badvectorinit.cxx | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
New commits:
commit 136301b3db886d8eed7e7cd8e25d749ed417797b
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Jun 13 13:43:12 2016 +0200
Remove unused member var
Change-Id: I0f4143cb2a34cf18e6c926432d707d84ef0ea579
diff --git a/compilerplugins/clang/badvectorinit.cxx b/compilerplugins/clang/badvectorinit.cxx
index b8c2dfe..e544fd2 100644
--- a/compilerplugins/clang/badvectorinit.cxx
+++ b/compilerplugins/clang/badvectorinit.cxx
@@ -89,7 +89,7 @@ class BadVectorInit:
public RecursiveASTVisitor<BadVectorInit>, public loplugin::Plugin
{
public:
- explicit BadVectorInit(InstantiationData const & data): Plugin(data), mbInsideFunction(false) {}
+ explicit BadVectorInit(InstantiationData const & data): Plugin(data) {}
virtual void run() override
{
@@ -101,15 +101,12 @@ public:
bool VisitCXXMemberCallExpr(const CXXMemberCallExpr* );
private:
StringRef getFilename(SourceLocation loc);
- bool mbInsideFunction;
std::set<const VarDecl*> suspectSet;
};
bool BadVectorInit::TraverseFunctionDecl(FunctionDecl* decl)
{
- mbInsideFunction = true;
bool ret = RecursiveASTVisitor::TraverseFunctionDecl(decl);
- mbInsideFunction = false;
suspectSet.clear();
return ret;
}
More information about the Libreoffice-commits
mailing list