diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-02-12 17:04:44 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-02-13 08:14:08 +0100 |
commit | 379d6e1dbe74a13dfe8d007e64cecdd1260c93ef (patch) | |
tree | 43944d3347ea18a85c518cf5d1f720502c48a70b /compilerplugins/clang | |
parent | d75781dcd619a747b17b6c897ba44dc6ff8b5c7e (diff) |
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.grandin@collabora.co.uk>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'compilerplugins/clang')
-rw-r--r-- | compilerplugins/clang/returnconstant.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
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 |