[Libreoffice-commits] core.git: compilerplugins/clang
Stephan Bergmann
sbergman at redhat.com
Wed Jun 29 19:52:18 UTC 2016
compilerplugins/clang/badstatics.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit ded8e74df2ed808177620a6c2458beb6d03fd18d
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Jun 29 21:51:28 2016 +0200
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
diff --git a/compilerplugins/clang/badstatics.cxx b/compilerplugins/clang/badstatics.cxx
index f316b4d..4904e1a 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;
More information about the Libreoffice-commits
mailing list