[Libreoffice-commits] core.git: compilerplugins/clang
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Wed May 6 16:25:18 UTC 2020
compilerplugins/clang/test/makeshared.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 1f4d360af70bd3c46092d8f16700f1aca49205bc
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Wed May 6 17:20:17 2020 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
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 <sbergman at redhat.com>
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 at +1 {{rather use make_shared than constructing from {{.+}} (aka 'std::unique_ptr<int, std::default_delete<int>{{ ?}}>') [loplugin:makeshared]}}
+ // expected-error-re at +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 at +1 {{rather use make_shared than constructing from {{.+}} (aka 'std::unique_ptr<int, std::default_delete<int>{{ ?}}>') [loplugin:makeshared]}}
+ // expected-error-re at +1 {{rather use make_shared than constructing from {{.+}} (aka 'std{{.*}}::unique_ptr<int, std{{.*}}::default_delete<int>{{ ?}}>') [loplugin:makeshared]}}
z = std::move(u1);
}
More information about the Libreoffice-commits
mailing list