[clang] bbced74 - [NFC] Remove invisible character in comments
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 11 22:10:58 PST 2022
Author: Chuanqi Xu
Date: 2022-01-12T14:10:18+08:00
New Revision: bbced7419991cbe4611536289f032b8777c8b59b
URL: https://github.com/llvm/llvm-project/commit/bbced7419991cbe4611536289f032b8777c8b59b
DIFF: https://github.com/llvm/llvm-project/commit/bbced7419991cbe4611536289f032b8777c8b59b.diff
LOG: [NFC] Remove invisible character in comments
Added:
Modified:
clang/lib/Sema/SemaCoroutine.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/SemaCoroutine.cpp b/clang/lib/Sema/SemaCoroutine.cpp
index f5f78c02e3701..decfb6a5d67d6 100644
--- a/clang/lib/Sema/SemaCoroutine.cpp
+++ b/clang/lib/Sema/SemaCoroutine.cpp
@@ -653,7 +653,7 @@ static void checkNoThrow(Sema &S, const Stmt *E,
}
if (ThrowingDecls.empty()) {
// [dcl.fct.def.coroutine]p15
- // The expression co_await promise.final_suspend() shall not be
+ // The expression co_await promise.final_suspend() shall not be
// potentially-throwing ([except.spec]).
//
// First time seeing an error, emit the error message.
@@ -1184,13 +1184,13 @@ bool CoroutineStmtBuilder::makeReturnOnAllocFailure() {
"cannot make statement while the promise type is dependent");
// [dcl.fct.def.coroutine]p10
- // If a search for the name get_return_object_on_allocation_failure in
+ // If a search for the name get_return_object_on_allocation_failure in
// the scope of the promise type ([class.member.lookup]) finds any
// declarations, then the result of a call to an allocation function used to
// obtain storage for the coroutine state is assumed to return nullptr if it
// fails to obtain storage, ... If the allocation function returns nullptr,
// ... and the return value is obtained by a call to
- // T::get_return_object_on_allocation_failure(), where T is the
+ // T::get_return_object_on_allocation_failure(), where T is the
// promise type.
DeclarationName DN =
S.PP.getIdentifierInfo("get_return_object_on_allocation_failure");
@@ -1433,10 +1433,10 @@ bool CoroutineStmtBuilder::makeOnFallthrough() {
"cannot make statement while the promise type is dependent");
// [dcl.fct.def.coroutine]/p6
- // If searches for the names return_void and return_value in the scope of
+ // If searches for the names return_void and return_value in the scope of
// the promise type each find any declarations, the program is ill-formed.
- // [Note 1: If return_void is found, flowing off the end of a coroutine is
- // equivalent to a co_return with no operand. Otherwise, flowing off the end
+ // [Note 1: If return_void is found, flowing off the end of a coroutine is
+ // equivalent to a co_return with no operand. Otherwise, flowing off the end
// of a coroutine results in undefined behavior ([stmt.return.coroutine]). —
// end note]
bool HasRVoid, HasRValue;
@@ -1529,7 +1529,7 @@ bool CoroutineStmtBuilder::makeOnException() {
bool CoroutineStmtBuilder::makeReturnObject() {
// [dcl.fct.def.coroutine]p7
- // The expression promise.get_return_object() is used to initialize the
+ // The expression promise.get_return_object() is used to initialize the
// returned reference or prvalue result object of a call to a coroutine.
ExprResult ReturnObject =
buildPromiseCall(S, Fn.CoroutinePromise, Loc, "get_return_object", None);
More information about the cfe-commits
mailing list