compilerplugins/clang/test/makeshared.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 1f4d360af70bd3c46092d8f16700f1aca49205bc
Author:     Stephan Bergmann <[email protected]>
AuthorDate: Wed May 6 17:20:17 2020 +0200
Commit:     Stephan Bergmann <[email protected]>
CommitDate: Wed May 6 18:24:46 2020 +0200

    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 <[email protected]>

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<int> u1;
-    // expected-error-re@+1 {{rather use make_shared than constructing from 
{{.+}} (aka 'std::unique_ptr<int, std::default_delete<int>{{ ?}}>') 
[loplugin:makeshared]}}
+    // expected-error-re@+1 {{rather use make_shared than constructing from 
{{.+}} (aka 'std{{.*}}::unique_ptr<int, std{{.*}}::default_delete<int>{{ ?}}>') 
[loplugin:makeshared]}}
     std::shared_ptr<int> z = std::move(u1);
-    // expected-error-re@+1 {{rather use make_shared than constructing from 
{{.+}} (aka 'std::unique_ptr<int, std::default_delete<int>{{ ?}}>') 
[loplugin:makeshared]}}
+    // expected-error-re@+1 {{rather use make_shared than constructing from 
{{.+}} (aka 'std{{.*}}::unique_ptr<int, std{{.*}}::default_delete<int>{{ ?}}>') 
[loplugin:makeshared]}}
     z = std::move(u1);
 }
 
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to