Fix compilerplugins/clang/test/useuniqueptr.cxx for clang-cl
...where it failed with > error: 'error' diagnostics expected but not seen: > File C:/lo-clang/core/compilerplugins/clang/test/useuniqueptr.cxx Line 266: rather manage this var with std::some_container<std::unique_ptr<T>> [loplugin:useuniqueptr] > File C:/lo-clang/core/compilerplugins/clang/test/useuniqueptr.cxx Line 275: rather manage this member with std::some_container<std::unique_ptr<T>> [loplugin:useuniqueptr] apparently due to differences in how some std types are implemented. Change-Id: Ib81ed1a1da867359e7f22bb6fb6ceb3e610e2b41 Reviewed-on: https://gerrit.libreoffice.org/67226 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
@@ -676,7 +676,7 @@ void UseUniquePtr::CheckLoopDelete(const FunctionDecl* functionDecl, const CXXDe
|
||||
init = compat::IgnoreImplicit(x->getArg(0));
|
||||
}
|
||||
if (auto x = dyn_cast<CXXMemberCallExpr>(init))
|
||||
init = x->getImplicitObjectArgument();
|
||||
init = x->getImplicitObjectArgument()->IgnoreParenImpCasts();
|
||||
if ((memberExpr = dyn_cast<MemberExpr>(init)))
|
||||
break;
|
||||
// look for deletes of an iterator object where the iterator is over a var
|
||||
|
Reference in New Issue
Block a user