diff --git a/clang-tools-extra/clangd/unittests/SourceCodeTests.cpp b/clang-tools-extra/clangd/unittests/SourceCodeTests.cpp index d7fd1a09e85d..419ebd35d3da 100644 --- a/clang-tools-extra/clangd/unittests/SourceCodeTests.cpp +++ b/clang-tools-extra/clangd/unittests/SourceCodeTests.cpp @@ -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