diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-06-28 22:38:57 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-06-28 22:38:57 +0200 |
commit | 0d3f9667bbc7b1a22d33dc92a2028fc712495a8e (patch) | |
tree | 0e47617932f5be3d6157f06e1bfeb6c53090cd09 /compilerplugins | |
parent | 0d3738a2580d72b778547bfcdf691fdeb0eccbdd (diff) |
AllocatorTraits::size can be static after all
Change-Id: If9ce8a094af878497e980cdcfaf11604d613e5b8
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/staticmethods.cxx | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/compilerplugins/clang/staticmethods.cxx b/compilerplugins/clang/staticmethods.cxx index 7eac313d1218..c53324275ed9 100644 --- a/compilerplugins/clang/staticmethods.cxx +++ b/compilerplugins/clang/staticmethods.cxx @@ -117,12 +117,7 @@ bool StaticMethods::TraverseCXXMethodDecl(const CXXMethodDecl * pCXXMethodDecl) if (aParentName == "BitmapInfoAccess") { return true; } - // can't change it because in debug mode it can't be static - // sal/cpprt/operators_new_delete.cxx auto dc = loplugin::DeclCheck(pCXXMethodDecl->getParent()); - if (dc.Struct("AllocatorTraits").AnonymousNamespace().GlobalNamespace()) { - return true; - } // in this case, the code is taking the address of the member function // shell/source/unix/sysshell/recently_used_file_handler.cxx if (dc.Struct("recently_used_item").AnonymousNamespace().GlobalNamespace()) |