loplugin:useuniqueptr in PPDParser

Change-Id: Iafd63c276d430ea2a08286921f593bc56587e71c
This commit is contained in:
Noel Grandin
2018-01-15 16:00:11 +02:00
parent 2e97530102
commit a9286f445d
3 changed files with 6 additions and 2 deletions

View File

@@ -290,6 +290,9 @@ void UseUniquePtr::CheckForRangedLoopDelete(const CXXDestructorDecl* destructorD
auto tc = loplugin::TypeCheck(fieldDecl->getType());
if (tc.Class("map").StdNamespace() || tc.Class("unordered_map").StdNamespace())
continue;
// there is a loop in ~ImplPrnQueueList deleting stuff on a global data structure
if (loplugin::hasPathnamePrefix(aFileName, SRCDIR "/vcl/inc/print.h"))
return;
report(
DiagnosticsEngine::Warning,