compilerplugins/clang/returnconstant.cxx | 2 -- 1 file changed, 2 deletions(-)
New commits: commit 379d6e1dbe74a13dfe8d007e64cecdd1260c93ef Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Wed Feb 12 17:04:44 2020 +0100 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Thu Feb 13 08:14:08 2020 +0100 aImmediateMacro is unused ...ever since fdc50b0a1b9741c5610a2b6c793c8fcdf5573c76 "new loplugin:returnconstant" Change-Id: Ib7f8760a95112aa31e1dd2ae15229c42e5fee812 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88547 Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Reviewed-by: Stephan Bergmann <sberg...@redhat.com> Tested-by: Jenkins diff --git a/compilerplugins/clang/returnconstant.cxx b/compilerplugins/clang/returnconstant.cxx index e33a35664e62..c2c0442bf63d 100644 --- a/compilerplugins/clang/returnconstant.cxx +++ b/compilerplugins/clang/returnconstant.cxx @@ -118,14 +118,12 @@ bool ReturnConstant::TraverseCXXMethodDecl(CXXMethodDecl* functionDecl) return true; // ignore LINK macro stuff - std::string aImmediateMacro = ""; if (compiler.getSourceManager().isMacroBodyExpansion(compat::getBeginLoc(functionDecl)) || compiler.getSourceManager().isMacroArgExpansion(compat::getBeginLoc(functionDecl))) { StringRef name{ Lexer::getImmediateMacroName(compat::getBeginLoc(functionDecl), compiler.getSourceManager(), compiler.getLangOpts()) }; - aImmediateMacro = name.str(); if (name.find("IMPL_LINK") != StringRef::npos || name.find("IMPL_STATIC_LINK") != StringRef::npos || name.find("DECL_LINK") != StringRef::npos _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits