[llvm] [clang-tools-extra] [clang] [clangd] Fix is spelled in source bug (PR #76668)

Younan Zhang via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 1 00:20:50 PST 2024


================
@@ -813,6 +813,21 @@ TEST(SourceCodeTests, isKeywords) {
   EXPECT_FALSE(isKeyword("override", LangOpts));
 }
 
+TEST(SourceCodeTests, isSpelledInSource) {
+  Annotations Test(R"cpp(
+        int abc = 1;
+    )cpp");
+
+  ParsedAST AST = TestTU::withCode(Test.code()).build();
+  llvm::errs() << Test.code();
----------------
zyn0217 wrote:

Debugging purpose?

https://github.com/llvm/llvm-project/pull/76668


More information about the cfe-commits mailing list