summaryrefslogtreecommitdiffstats
path: root/compilerplugins
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-05-07 15:53:16 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-05-07 15:54:22 +0200
commit0e2cda8906f501bb8a90f1f44335c7ff2a5edb4f (patch)
treea3e8dee5315c4ed852137888da8aac4e1b0f6de5 /compilerplugins
parenttdf#43157 Clean up OSL_VERIFY (replace with SAL_WARN) (diff)
downloadcore-0e2cda8906f501bb8a90f1f44335c7ff2a5edb4f.tar.gz
core-0e2cda8906f501bb8a90f1f44335c7ff2a5edb4f.zip
loplugin:badstatics
add some more false+ which interestingly enough, only started showing up when I switched on --enable-pch=system Change-Id: I2d52644dc3665db19b28772eb818c138e063dae4
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/badstatics.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/compilerplugins/clang/badstatics.cxx b/compilerplugins/clang/badstatics.cxx
index 814a120de8ef..87c31acd996e 100644
--- a/compilerplugins/clang/badstatics.cxx
+++ b/compilerplugins/clang/badstatics.cxx
@@ -209,6 +209,8 @@ public:
|| name == "gStaticManager" // vcl/source/graphic/Manager.cxx - stores non-owning pointers
|| name == "aThreadedInterpreterPool" // ScInterpreterContext(Pool), not owning
|| name == "aNonThreadedInterpreterPool" // ScInterpreterContext(Pool), not owning
+ || name == "lcl_parserContext" // getParserContext(), the chain from this to a VclPtr is not owning
+ || name == "aReaderWriter" // /home/noel/libo/sw/source/filter/basflt/fltini.cxx, non-owning
) // these variables appear unproblematic
{
return true;