Skip to content

Commit

Permalink
[clangd][test] Account for downstream coroutines hack in isKeywords test
Browse files Browse the repository at this point in the history
  • Loading branch information
jrtc27 committed Aug 12, 2024
1 parent 0621ed3 commit a6c1da9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clang-tools-extra/clangd/unittests/SourceCodeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,10 @@ TEST(SourceCodeTests, isKeywords) {
LangOpts.CPlusPlus20 = true;
EXPECT_TRUE(isKeyword("int", LangOpts));
EXPECT_TRUE(isKeyword("return", LangOpts));
// CHERI-TODO: COROUTINES_KEYWORD is not included in CXX20_KEYWORD until
// https://github.com/CTSRD-CHERI/llvm-project/issues/717 has been fixed.
EXPECT_FALSE(isKeyword("co_await", LangOpts));
LangOpts.Coroutines = true;
EXPECT_TRUE(isKeyword("co_await", LangOpts));

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

0 comments on commit a6c1da9

Please sign in to comment.