diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-05-06 17:20:17 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-05-06 18:24:46 +0200 |
commit | 1f4d360af70bd3c46092d8f16700f1aca49205bc (patch) | |
tree | 14ff3b91890bb470bdf56e7b41471ed98fbee5c0 /compilerplugins | |
parent | 2688cd48466799383d2bf21331a8d415eaa1eae1 (diff) |
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 <sbergman@redhat.com>
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/test/makeshared.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |