Author: Chuanqi Xu Date: 2022-09-06T11:08:42+08:00 New Revision: 7628f19262e441b438a69176ec5229d8ccb96124
URL: https://github.com/llvm/llvm-project/commit/7628f19262e441b438a69176ec5229d8ccb96124 DIFF: https://github.com/llvm/llvm-project/commit/7628f19262e441b438a69176ec5229d8ccb96124.diff LOG: [NFC] Remove invisible character in Diagnostic message and tests Added: Modified: clang/include/clang/Basic/DiagnosticSemaKinds.td clang/test/SemaCXX/coroutine-alloc-3.cpp Removed: ################################################################################ diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td index 66cf0d8107934..15a4e2aefdb79 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 6e47d36712f3f..629ac88a3df8e 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<int, promise_on_alloc_failure_tag> { }; }; -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; } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits