@@ -97,7 +97,7 @@ class PossiblyUnreachableDiag {
97
97
: PD(PD), Loc(Loc), Stmts(Stmts) {}
98
98
};
99
99
100
- enum class FirstCoroutineStmtKind { co_return , co_await , co_yield };
100
+ enum class FirstCoroutineStmtKind { CoReturn, CoAwait, CoYield };
101
101
102
102
// / Retains information about a function, method, or block that is
103
103
// / currently being parsed.
@@ -508,11 +508,11 @@ class FunctionScopeInfo {
508
508
FirstCoroutineStmtKind =
509
509
llvm::StringSwitch<unsigned char >(Keyword)
510
510
.Case (" co_return" ,
511
- llvm::to_underlying (FirstCoroutineStmtKind::co_return ))
511
+ llvm::to_underlying (FirstCoroutineStmtKind::CoReturn ))
512
512
.Case (" co_await" ,
513
- llvm::to_underlying (FirstCoroutineStmtKind::co_await ))
513
+ llvm::to_underlying (FirstCoroutineStmtKind::CoAwait ))
514
514
.Case (" co_yield" ,
515
- llvm::to_underlying (FirstCoroutineStmtKind::co_yield ));
515
+ llvm::to_underlying (FirstCoroutineStmtKind::CoYield ));
516
516
}
517
517
518
518
StringRef getFirstCoroutineStmtKeyword () const {
@@ -521,11 +521,11 @@ class FunctionScopeInfo {
521
521
auto Value =
522
522
static_cast <enum FirstCoroutineStmtKind>(FirstCoroutineStmtKind);
523
523
switch (Value) {
524
- case FirstCoroutineStmtKind::co_return :
524
+ case FirstCoroutineStmtKind::CoReturn :
525
525
return " co_return" ;
526
- case FirstCoroutineStmtKind::co_await :
526
+ case FirstCoroutineStmtKind::CoAwait :
527
527
return " co_await" ;
528
- case FirstCoroutineStmtKind::co_yield :
528
+ case FirstCoroutineStmtKind::CoYield :
529
529
return " co_yield" ;
530
530
};
531
531
llvm_unreachable (" FirstCoroutineStmtKind has an invalid value" );
0 commit comments