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;