Skip to content

Commit 425fd3e

Browse files
committed
[clang][NFC] Rename FirstCoroutineStmtKind enumerators
So that they do not use coroutine keywords. Fixed buildbot failure https://lab.llvm.org/buildbot/#/builders/86/builds/74100
1 parent d2812d2 commit 425fd3e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

clang/include/clang/Sema/ScopeInfo.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class PossiblyUnreachableDiag {
9797
: PD(PD), Loc(Loc), Stmts(Stmts) {}
9898
};
9999

100-
enum class FirstCoroutineStmtKind { co_return, co_await, co_yield };
100+
enum class FirstCoroutineStmtKind { CoReturn, CoAwait, CoYield };
101101

102102
/// Retains information about a function, method, or block that is
103103
/// currently being parsed.
@@ -508,11 +508,11 @@ class FunctionScopeInfo {
508508
FirstCoroutineStmtKind =
509509
llvm::StringSwitch<unsigned char>(Keyword)
510510
.Case("co_return",
511-
llvm::to_underlying(FirstCoroutineStmtKind::co_return))
511+
llvm::to_underlying(FirstCoroutineStmtKind::CoReturn))
512512
.Case("co_await",
513-
llvm::to_underlying(FirstCoroutineStmtKind::co_await))
513+
llvm::to_underlying(FirstCoroutineStmtKind::CoAwait))
514514
.Case("co_yield",
515-
llvm::to_underlying(FirstCoroutineStmtKind::co_yield));
515+
llvm::to_underlying(FirstCoroutineStmtKind::CoYield));
516516
}
517517

518518
StringRef getFirstCoroutineStmtKeyword() const {
@@ -521,11 +521,11 @@ class FunctionScopeInfo {
521521
auto Value =
522522
static_cast<enum FirstCoroutineStmtKind>(FirstCoroutineStmtKind);
523523
switch (Value) {
524-
case FirstCoroutineStmtKind::co_return:
524+
case FirstCoroutineStmtKind::CoReturn:
525525
return "co_return";
526-
case FirstCoroutineStmtKind::co_await:
526+
case FirstCoroutineStmtKind::CoAwait:
527527
return "co_await";
528-
case FirstCoroutineStmtKind::co_yield:
528+
case FirstCoroutineStmtKind::CoYield:
529529
return "co_yield";
530530
};
531531
llvm_unreachable("FirstCoroutineStmtKind has an invalid value");

0 commit comments

Comments
 (0)