[clang-tools-extra] [clangd] Fix is spelled in source bug (PR #76668)
Andrew Schenk via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 1 18:58:24 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();
----------------
schenka0 wrote:
Thanks for the review. Not familiar with this codebase/standards so was just copying surrounding code. I've simplified the test code.
https://github.com/llvm/llvm-project/pull/76668
More information about the cfe-commits
mailing list