[clang] [clang-tools-extra] [clangd] Add InsertReplaceEdit for code completion (PR #187623)

via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 29 07:41:51 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 87466 tests passed
* 1516 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### Clang-Unit
<details>
<summary>Clang-Unit._/AllClangUnitTests/8/101</summary>

```
Script(shard):
--
GTEST_OUTPUT=json:/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/unittests/./AllClangUnitTests-Clang-Unit-497321-8-101.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=101 GTEST_SHARD_INDEX=8 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/unittests/./AllClangUnitTests
--

Note: This is test shard 9 of 101.
[==========] Running 254 tests from 64 test suites.
[----------] Global test environment set-up.
[----------] 1 test from MinimizeSourceToDependencyDirectivesTest
[ RUN      ] MinimizeSourceToDependencyDirectivesTest.DefineSpacing
[       OK ] MinimizeSourceToDependencyDirectivesTest.DefineSpacing (0 ms)
[----------] 1 test from MinimizeSourceToDependencyDirectivesTest (0 ms total)

[----------] 1 test from LexerTest
[ RUN      ] LexerTest.FindEndOfIdentifierContinuation
AllClangUnitTests: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/Lex/Token.h:152: void clang::Token::setLength(unsigned int): Assertion `!isAnnotation() && "Annotation tokens have no length field"' failed.
 #0 0x00000000074e5298 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:880:13
 #1 0x00000000074e2215 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
 #2 0x00000000074e60b1 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:448:38
 #3 0x00007eaad28d9330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
 #4 0x00007eaad2932b2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
 #5 0x00007eaad28d927e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
 #6 0x00007eaad28bc8ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
 #7 0x00007eaad28bc81b (/lib/x86_64-linux-gnu/libc.so.6+0x2881b)
 #8 0x00007eaad28cf517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
 #9 0x0000000009f7d848 getSourceLocation /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Lex/Lexer.cpp:1265:3
#10 0x0000000009f7d848 clang::Lexer::FormTokenWithChars(clang::Token&, char const*, clang::tok::TokenKind) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/Lex/Lexer.h:653:24
#11 0x0000000009f789d9 is /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/Lex/Token.h:104:49
#12 0x0000000009f789d9 setRawIdentifierData /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/Lex/Token.h:228:12
#13 0x0000000009f789d9 clang::Lexer::LexIdentifierContinue(clang::Token&, char const*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Lex/Lexer.cpp:2042:10
#14 0x0000000009f787cc getKind /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/Lex/Token.h:99:43
#15 0x0000000009f787cc isAnnotation /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/Lex/Token.h:131:56
#16 0x0000000009f787cc getLength /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/Lex/Token.h:146:13
#17 0x0000000009f787cc clang::Lexer::findEndOfIdentifierContinuation(clang::SourceLocation, clang::SourceManager const&, clang::LangOptions const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Lex/Lexer.cpp:537:35
#18 0x00000000060a4a87 getFileOffset /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/Basic/SourceManager.h:1309:12
#19 0x00000000060a4a87 (anonymous namespace)::LexerTest_FindEndOfIdentifierContinuation_Test::TestBody()::$_0::operator()(llvm::StringRef, unsigned int) const /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/unittests/Lex/LexerTest.cpp:863:39
#20 0x00000000060a402b (anonymous namespace)::LexerTest_FindEndOfIdentifierContinuation_Test::TestBody() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/unittests/Lex/LexerTest.cpp:871:13
#21 0x0000000009562ee0 os_stack_trace_getter /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:6240:7
#22 0x0000000009562ee0 testing::Test::Run() /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:2695:9
#23 0x0000000009564480 os_stack_trace_getter /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:6240:7
#24 0x0000000009564480 testing::TestInfo::Run() /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:2842:11
#25 0x0000000009565093 testing::TestSuite::Run() /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:3018:35
#26 0x00000000095762a4 testing::internal::UnitTestImpl::RunAllTests() /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:5922:41
#27 0x0000000009575659 testing::UnitTest::Run() /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:5485:10
#28 0x000000000954bfca main /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/UnitTestMain/TestMain.cpp:55:3
#29 0x00007eaad28be1ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
#30 0x00007eaad28be28b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
#31 0x00000000060662a5 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/unittests/./AllClangUnitTests+0x60662a5)

--
exit: -6
--
shard JSON output does not exist: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/unittests/./AllClangUnitTests-Clang-Unit-497321-8-101.json
```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the cfe-commits mailing list