[Libreoffice-commits] core.git: compilerplugins/clang
Stephan Bergmann
sbergman at redhat.com
Fri Jan 19 12:53:00 UTC 2018
compilerplugins/clang/emptyif.cxx | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
New commits:
commit 5ea8854d3cac2d31b86838f09bdc628ba7b6a4de
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Jan 19 13:52:24 2018 +0100
-Werror,-Wunused-variable
Change-Id: I1bcfe0dabd61a2157bc4a48ea54413882ecaaabc
diff --git a/compilerplugins/clang/emptyif.cxx b/compilerplugins/clang/emptyif.cxx
index d9348e660378..6eac86b6bcc7 100644
--- a/compilerplugins/clang/emptyif.cxx
+++ b/compilerplugins/clang/emptyif.cxx
@@ -30,13 +30,7 @@ public:
{
}
- virtual void run() override
- {
- StringRef fn(compiler.getSourceManager()
- .getFileEntryForID(compiler.getSourceManager().getMainFileID())
- ->getName());
- TraverseDecl(compiler.getASTContext().getTranslationUnitDecl());
- }
+ virtual void run() override { TraverseDecl(compiler.getASTContext().getTranslationUnitDecl()); }
bool VisitIfStmt(IfStmt const*);
More information about the Libreoffice-commits
mailing list