diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-10 12:30:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-11 12:47:37 +0100 |
commit | e57a036939e27ecd173ace691689e26a6a33df8e (patch) | |
tree | a36d589da272c4732cddb4ca0548cdb5dcb2b2bd /compilerplugins | |
parent | cb5d79b504aa8575ea15c777707c7465ea43cb07 (diff) |
loplugin:useuniqueptr in tools,stoc,unotools
Change-Id: Ia72b65577143623cedc7a40bc34f7fb897add097
Reviewed-on: https://gerrit.libreoffice.org/47726
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/useuniqueptr.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compilerplugins/clang/useuniqueptr.cxx b/compilerplugins/clang/useuniqueptr.cxx index 0c0e25d2ebee..7524f7662e3c 100644 --- a/compilerplugins/clang/useuniqueptr.cxx +++ b/compilerplugins/clang/useuniqueptr.cxx @@ -112,6 +112,11 @@ void UseUniquePtr::CheckForUnconditionalDelete(const CXXDestructorDecl* destruct // @TODO it's sharing pointers with another class if (loplugin::hasPathnamePrefix(aFileName, SRCDIR "/sc/inc/formulacell.hxx")) continue; + // some weird stuff going on here around struct Entity + if (loplugin::hasPathnamePrefix(aFileName, SRCDIR "/sax/")) + continue; + if (loplugin::hasPathnamePrefix(aFileName, SRCDIR "/include/sax/")) + continue; report( DiagnosticsEngine::Warning, |