Skip to content

Commit f374adc

Browse files
jrtc27resistor
authored andcommitted
[clangd][test] Account for downstream coroutines hack in isKeywords test
1 parent 8237ccf commit f374adc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang-tools-extra/clangd/unittests/SourceCodeTests.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,10 @@ TEST(SourceCodeTests, isKeywords) {
808808
LangOpts.Coroutines = true;
809809
EXPECT_TRUE(isKeyword("int", LangOpts));
810810
EXPECT_TRUE(isKeyword("return", LangOpts));
811+
// CHERI-TODO: COROUTINES_KEYWORD is not included in CXX20_KEYWORD until
812+
// https://github.com/CTSRD-CHERI/llvm-project/issues/717 has been fixed.
813+
EXPECT_FALSE(isKeyword("co_await", LangOpts));
814+
LangOpts.Coroutines = true;
811815
EXPECT_TRUE(isKeyword("co_await", LangOpts));
812816

813817
// these are identifiers (not keywords!) with special meaning in some

0 commit comments

Comments
 (0)