From 1f4d360af70bd3c46092d8f16700f1aca49205bc Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 6 May 2020 17:20:17 +0200 Subject: Adapt compilerplugins/clang/test/makeshared.cxx to libc++ ...where the relevant types' actual names are std::__1::unique_ptr and std::__1::default_delete Change-Id: I2c364535061691415703d6ff0f58269cdd192a6b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93576 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- compilerplugins/clang/test/makeshared.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compilerplugins') diff --git a/compilerplugins/clang/test/makeshared.cxx b/compilerplugins/clang/test/makeshared.cxx index 1ecb8192c7ce..fe73d7e0e47c 100644 --- a/compilerplugins/clang/test/makeshared.cxx +++ b/compilerplugins/clang/test/makeshared.cxx @@ -54,9 +54,9 @@ void test2() (void)y; std::unique_ptr u1; - // expected-error-re@+1 {{rather use make_shared than constructing from {{.+}} (aka 'std::unique_ptr{{ ?}}>') [loplugin:makeshared]}} + // expected-error-re@+1 {{rather use make_shared than constructing from {{.+}} (aka 'std{{.*}}::unique_ptr{{ ?}}>') [loplugin:makeshared]}} std::shared_ptr z = std::move(u1); - // expected-error-re@+1 {{rather use make_shared than constructing from {{.+}} (aka 'std::unique_ptr{{ ?}}>') [loplugin:makeshared]}} + // expected-error-re@+1 {{rather use make_shared than constructing from {{.+}} (aka 'std{{.*}}::unique_ptr{{ ?}}>') [loplugin:makeshared]}} z = std::move(u1); } -- cgit