From 30ededbd00c3b69bc7bfe72d1431e17df82542a6 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 4 Aug 2020 11:50:37 +0200 Subject: Adapt compilerplugins/clang/test/makeshared.cxx to MSVC standard library > error: 'error' diagnostics seen but not expected: > File compilerplugins/clang/test/makeshared.cxx Line 47: rather use make_shared than constructing from 'unique_ptr' [loplugin:makeshared] > File compilerplugins/clang/test/makeshared.cxx Line 49: rather use make_shared than constructing from 'unique_ptr' [loplugin:makeshared] > File compilerplugins/clang/test/makeshared.cxx Line 53: rather use make_shared than constructing from 'unique_ptr' [loplugin:makeshared] Change-Id: I5d2d1b129c9d0fee496eceb4e2cf14f5853ba00b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100074 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- compilerplugins/clang/test/makeshared.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'compilerplugins/clang') diff --git a/compilerplugins/clang/test/makeshared.cxx b/compilerplugins/clang/test/makeshared.cxx index fe73d7e0e47c..d3ac22389c8f 100644 --- a/compilerplugins/clang/test/makeshared.cxx +++ b/compilerplugins/clang/test/makeshared.cxx @@ -43,13 +43,13 @@ void test1() void test2() { - // expected-error-re@+1 {{rather use make_shared than constructing from {{.+}} (aka 'unique_ptr') [loplugin:makeshared]}} + // expected-error-re@+1 {{rather use make_shared than constructing from {{.*}}'unique_ptr'{{.*}} [loplugin:makeshared]}} std::shared_ptr x = std::make_unique(1); - // expected-error-re@+1 {{rather use make_shared than constructing from {{.+}} (aka 'unique_ptr') [loplugin:makeshared]}} + // expected-error-re@+1 {{rather use make_shared than constructing from {{.*}}'unique_ptr'{{.*}} [loplugin:makeshared]}} x = std::make_unique(1); (void)x; - // expected-error-re@+1 {{rather use make_shared than constructing from {{.+}} (aka 'unique_ptr') [loplugin:makeshared]}} + // expected-error-re@+1 {{rather use make_shared than constructing from {{.*}}'unique_ptr'{{.*}} [loplugin:makeshared]}} std::shared_ptr y(std::make_unique(1)); (void)y; -- cgit