From ded8e74df2ed808177620a6c2458beb6d03fd18d Mon Sep 17 00:00:00 2001 From: Stephan Bergmann <sbergman@redhat.com> Date: Wed, 29 Jun 2016 21:51:28 +0200 Subject: loplugin:badstatics: whitelist some more statics ...which use std containers and are only found at all with the libc++ container implementations, not the libstdc++ ones. Change-Id: Ic9af06139823befad4af1a9a825cba10c115aceb --- compilerplugins/clang/badstatics.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'compilerplugins') diff --git a/compilerplugins/clang/badstatics.cxx b/compilerplugins/clang/badstatics.cxx index f316b4d47b88..4904e1a31d3e 100644 --- a/compilerplugins/clang/badstatics.cxx +++ b/compilerplugins/clang/badstatics.cxx @@ -142,6 +142,12 @@ public: // sw/source/core/text/blink.cxx, _TextFinit() || name == "s_pIconCache" // sd/source/ui/tools/IconCache.cxx, leaked + || name == "maInstanceMap" + // sd/source/ui/framework/tools/FrameworkHelper.cxx, would + // leak ViewShellBase* keys if that map is not empty at exit + || name == "theAddInAsyncTbl" + // sc/source/core/tool/adiasync.cxx, would leak + // ScAddInAsync* keys if that set is not empty at exit ) // these variables appear unproblematic { return true; -- cgit