From: Chuanqi Xu Date: Tue, 6 Sep 2022 03:08:42 +0000 (+0800) Subject: [NFC] Remove invisible character in Diagnostic message and tests X-Git-Tag: upstream/17.0.6~34353 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7628f19262e441b438a69176ec5229d8ccb96124;p=platform%2Fupstream%2Fllvm.git [NFC] Remove invisible character in Diagnostic message and tests --- diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td index 66cf0d8..15a4e2a 100644 --- a/clang/include/clang/Basic/DiagnosticSemaKinds.td +++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td @@ -11273,7 +11273,7 @@ def err_coroutine_unusable_new : Error< "'operator new' provided by %0 is not usable with the function signature of %1" >; def err_coroutine_unfound_nothrow_new : Error < - "unable to find '::operator new(size_­t, nothrow_­t)' for %0" + "unable to find '::operator new(size_t, nothrow_t)' for %0" >; } // end of coroutines issue category diff --git a/clang/test/SemaCXX/coroutine-alloc-3.cpp b/clang/test/SemaCXX/coroutine-alloc-3.cpp index 6e47d36..629ac88 100644 --- a/clang/test/SemaCXX/coroutine-alloc-3.cpp +++ b/clang/test/SemaCXX/coroutine-alloc-3.cpp @@ -46,6 +46,6 @@ struct std::coroutine_traits { }; }; -extern "C" int f(promise_on_alloc_failure_tag) { // expected-error 1+{{unable to find '::operator new(size_­t, nothrow_­t)' for 'f'}} +extern "C" int f(promise_on_alloc_failure_tag) { // expected-error 1+{{unable to find '::operator new(size_t, nothrow_t)' for 'f'}} co_return; }