summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-06-05 08:57:32 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-06-05 14:53:33 +0200
commit94a34d6bdb41da2aafc519ffe1447d03ba99b4a6 (patch)
tree2d982a7c2b6f4b5b760e1b966695b61db1a52598 /compilerplugins
parent961655e7a8a925680271c7736a7d50ed62af6af4 (diff)
add boost::intrusive_ptr to list of smart points in plugins
and fix some loplugin:simplifypointertobool warnings Change-Id: I3644c390a3339a4cb8d66d6d034a0f043de9320c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95572 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/plugin.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/compilerplugins/clang/plugin.cxx b/compilerplugins/clang/plugin.cxx
index c9e0170f2969..dc7c673a31c3 100644
--- a/compilerplugins/clang/plugin.cxx
+++ b/compilerplugins/clang/plugin.cxx
@@ -856,7 +856,8 @@ bool isSmartPointerType(const Expr* e)
|| tc2.Class("ScopedReadAccess").Namespace("Bitmap").GlobalNamespace()
|| tc2.Class("ScopedVclPtrInstance").GlobalNamespace()
|| tc2.Class("VclPtr").GlobalNamespace()
- || tc2.Class("ScopedVclPtr").GlobalNamespace())
+ || tc2.Class("ScopedVclPtr").GlobalNamespace()
+ || tc2.Class("intrusive_ptr").Namespace("boost").GlobalNamespace())
{
return true;
}