summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/badstatics.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-11-30 12:14:30 +0100
committerStephan Bergmann <sbergman@redhat.com>2021-11-30 16:03:18 +0100
commit9a681101543f9c60112dfc0d04309be7dc50b61d (patch)
tree45044fa7b69c8708bc41f79de7463752e0301d06 /compilerplugins/clang/badstatics.cxx
parentda2d40bb2b0b81cb891e2a334d672bb2790a7c23 (diff)
Silence loplugin:badstatics
> /Users/stephan/lo/core/vcl/osx/a11yfocustracker.cxx:40:33: error: bad static variable causes crash on shutdown [loplugin:badstatics] > static AquaA11yFocusTracker SINGLETON; > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ > /Users/stephan/lo/core/vcl/inc/osx/a11yfocustracker.hxx:85:35: note: ... due to this member of 'AquaA11yFocusTracker' [loplugin:badstatics] > std::set<VclPtr<vcl::Window>> m_aDocumentWindowList; > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ Change-Id: I7fd0b1808e5433bab6e1436c345044a5ce804f4c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126115 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'compilerplugins/clang/badstatics.cxx')
-rw-r--r--compilerplugins/clang/badstatics.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/compilerplugins/clang/badstatics.cxx b/compilerplugins/clang/badstatics.cxx
index 75eee2606769..9539559f699e 100644
--- a/compilerplugins/clang/badstatics.cxx
+++ b/compilerplugins/clang/badstatics.cxx
@@ -226,6 +226,11 @@ public:
// sfx2/source/view/frame.cxx, vector of pointer, so not a problem, nothing is going to happen on shutdown
|| name == "g_pOLELRU_Cache" || name == "s_aTableColumnsMap"
// TODO
+ || name == "SINGLETON"
+ // TheAquaA11yFocusTracker in vcl/osx/a11yfocustracker.cxx,
+ // AquaA11yFocusTracker::m_aDocumentWindowList elements symmetrically added and
+ // removed in AquaA11yFocusTracker::window_got_focus and
+ // AquaA11yFocusTracker::WindowEventHandler (TODO: is that guaranteed?)
) // these variables appear unproblematic
{
return true;