summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-05-04 12:01:36 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-05-04 14:33:00 +0200
commit2a9ea3c978f039d8ed9689f925860d07fbb4b717 (patch)
treea1d58c0684f218d4dad93d9a121c221119b02a72 /compilerplugins
parentdba50d5e6c1b4d3d16690ee5b8a9648c652f41e7 (diff)
Adapt test code to Clang 11 trunk change
...<https://github.com/llvm/llvm-project/commit/ 159a9f7e76307734bcdcae3357640e42e0733194> "[AST] Print a<b<c>> without extra spaces in C++11 or later." Change-Id: Ic8a2ab1ee9082e150cf0ebe1f6538a1a1deb7853 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93409 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/test/makeshared.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/compilerplugins/clang/test/makeshared.cxx b/compilerplugins/clang/test/makeshared.cxx
index 8833928e8c18..1ecb8192c7ce 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);
}