diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-11-08 14:02:40 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-11-08 18:57:55 +0100 |
commit | c3c56b85605555e32fa09f6437c755d841152cf3 (patch) | |
tree | 4618b1a399b9052625f33c3d09c1fe3a4188f2cd | |
parent | 0a2622760a967e9d64cfdc632548dd42c1836324 (diff) |
Adapt expected diagnostic output to clang-cl and the MSVC standard library
Change-Id: Ie416e4170280b9f05ecac359655e71f65a525592
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159131
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r-- | compilerplugins/clang/test/ostr.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compilerplugins/clang/test/ostr.cxx b/compilerplugins/clang/test/ostr.cxx index d8ad56201ec3..c481fa06ea07 100644 --- a/compilerplugins/clang/test/ostr.cxx +++ b/compilerplugins/clang/test/ostr.cxx @@ -85,9 +85,9 @@ void f() void passLiteral() { - // expected-error@+1 {{directly use a 'std::string' (aka 'basic_string<char>') value instead of a _ostr user-defined string literal [loplugin:ostr]}} + // expected-error-re@+1 {{directly use a 'std::string' (aka 'basic_string<char{{(, char_traits<char>, allocator<char>)?}}>') value instead of a _ostr user-defined string literal [loplugin:ostr]}} takeStdString(std::string(""_ostr)); - // expected-error@+1 {{directly use a 'std::u16string' (aka 'basic_string<char16_t>') value instead of a _ustr user-defined string literal [loplugin:ostr]}} + // expected-error-re@+1 {{directly use a 'std::u16string' (aka 'basic_string<char16_t{{(, char_traits<char16_t>, allocator<char16_t>)?}}>') value instead of a _ustr user-defined string literal [loplugin:ostr]}} takeStdString(std::u16string(u""_ustr)); // expected-error@+1 {{directly use a 'std::string_view' (aka 'basic_string_view<char>') value instead of a _ostr user-defined string literal [loplugin:ostr]}} takeStdView(""_ostr); |