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>
This commit is contained in:
parent
0a2622760a
commit
c3c56b8560
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue