summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-23 09:28:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-23 13:18:28 +0200
commit87e7b4bf4b81b82f43abb7dcafcc733ebca5fb42 (patch)
tree640cab1f84a28304a92f9b36a2fd8de3b5fcf54e /compilerplugins
parent0ce6100ab672ad597f7555c0bd475b8393896c0f (diff)
loplugin:useuniqueptr more exclusions
Change-Id: I70c6d4af999965497e23ec8180eb08aa6dc648c5 Reviewed-on: https://gerrit.libreoffice.org/62221 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/useuniqueptr.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/compilerplugins/clang/useuniqueptr.cxx b/compilerplugins/clang/useuniqueptr.cxx
index ac55e2878c9b..fb8363974612 100644
--- a/compilerplugins/clang/useuniqueptr.cxx
+++ b/compilerplugins/clang/useuniqueptr.cxx
@@ -119,6 +119,13 @@ public:
// ZipOutputStream, ownership of ZipEntry is horribly complicated here
if (fn == SRCDIR "/package/source/zipapi/ZipOutputStream.cxx")
return;
+ // custom deleter
+ if (fn == SRCDIR "/sal/rtl/locale.cxx")
+ return;
+ // std::vector<ScLookupCacheMap*> is tricky, changing it would require moving lots of class definitions around
+ if (fn == SRCDIR "/sc/source/core/data/documen2.cxx"
+ || fn == SRCDIR "/sc/source/core/tool/interpretercontext.cxx")
+ return;
TraverseDecl(compiler.getASTContext().getTranslationUnitDecl());
}