[clang-tools-extra] [clangd] Add AddUsingReplaceAll tweak to replace all qualified refere… (PR #204151)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 8 07:34:36 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 3266 tests passed
* 33 tests skipped
* 1 test failed

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

### Clangd
<details>
<summary>Clangd.Clangd/check.test</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
cp C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\check.test C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\clangd\test\Output\check.test.tmp.cpp
# executed command: cp 'C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\check.test' 'C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\clangd\test\Output\check.test.tmp.cpp'
# note: command had no output on stdout or stderr
# RUN: at line 2
clangd -enable-config=0 -log=verbose -check=C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\clangd\test\Output\check.test.tmp.cpp 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -strict-whitespace C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\check.test
# executed command: clangd -enable-config=0 -log=verbose '-check=C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\clangd\test\Output\check.test.tmp.cpp'
# note: command had no output on stdout or stderr
# error: command failed with exit status: 3
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -strict-whitespace 'C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\check.test'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\check.test:13:11: error: CHECK: expected string not found in input
# | // CHECK: All checks completed, 0 errors
# |           ^
# | <stdin>:99:36: note: scanning from here
# | V[14:33:44.868]     tweak: AddUsingReplaceAll
# |                                    ^
# | <stdin>:131:17: note: possible intended match here
# | I[14:33:44.876] All checks completed, 4 errors
# |                 ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\check.test
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |            94: V[14:33:44.867]     definition: 1 
# |            95: V[14:33:44.868]     hover: true 
# |            96: V[14:33:44.868]     documentHighlight: 1 
# |            97: V[14:33:44.868]   17:9 ns 
# |            98: E[14:33:44.868]     tweak: ReplaceQualifiedWithAlias ==> FAIL: Incomplete prepared state for ReplaceQualifiedWithAlias 
# |            99: V[14:33:44.868]     tweak: AddUsingReplaceAll 
# | check:13'0                                       {             search range start (exclusive)
# | check:13'1                                                     error: no match found in search range
# |           100: V[14:33:44.868]     tweak: AddUsing 
# |           101: V[14:33:44.868]     definition: 1 
# |           102: V[14:33:44.870]     hover: true 
# |           103: V[14:33:44.870]     documentHighlight: 2 
# |           104: V[14:33:44.870]   17:11 :: 
# |             .
# |             .
# |             .
# |           126: V[14:33:44.875]     documentHighlight: 0 
# |           127: V[14:33:44.875]   17:18 ; 
# |           128: V[14:33:44.875]     definition: 1 
# |           129: V[14:33:44.876]     hover: true 
# |           130: V[14:33:44.876]     documentHighlight: 0 
# |           131: I[14:33:44.876] All checks completed, 4 errors 
# | check:13'2                     ?                                possible intended match
# | check:13'3                                                    } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</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/204151


More information about the cfe-commits mailing list