[clang] [clang-tools-extra] [clangd] Handle C++20 annot_module_name token (PR #187858)

via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 21 05:45:36 PDT 2026


github-actions[bot] wrote:

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

* 53356 tests passed
* 1039 tests skipped
* 2 tests failed

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

### Clang
<details>
<summary>Clang.Modules/fatal-module-loader-error.m</summary>

```
Exit Code: 70

Command Output (stdout):
--
# RUN: at line 1
rm -rf C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\fatal-module-loader-error.m.tmp
# executed command: rm -rf 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\fatal-module-loader-error.m.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 2
mkdir C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\fatal-module-loader-error.m.tmp
# executed command: mkdir 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\fatal-module-loader-error.m.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 3
touch C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\fatal-module-loader-error.m.tmp/Module.pcm
# executed command: touch 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\fatal-module-loader-error.m.tmp/Module.pcm'
# note: command had no output on stdout or stderr
# RUN: at line 4
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -fmodules -fimplicit-module-maps -fmodules-cache-path=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\fatal-module-loader-error.m.tmp C:\_work\llvm-project\llvm-project\clang\test\Modules\fatal-module-loader-error.m -fdisable-module-hash -F C:\_work\llvm-project\llvm-project\clang\test\Modules/Inputs -verify
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -fmodules -fimplicit-module-maps '-fmodules-cache-path=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\fatal-module-loader-error.m.tmp' 'C:\_work\llvm-project\llvm-project\clang\test\Modules\fatal-module-loader-error.m' -fdisable-module-hash -F 'C:\_work\llvm-project\llvm-project\clang\test\Modules/Inputs' -verify
# .---command stderr------------
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
# | Stack dump:
# | 0.	Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang.exe -cc1 -internal-isystem C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\23\\include -nostdsysteminc -fmodules -fimplicit-module-maps -fmodules-cache-path=C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\Modules\\Output\\fatal-module-loader-error.m.tmp C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Modules\\fatal-module-loader-error.m -fdisable-module-hash -F C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Modules/Inputs -verify
# | 1.	C:\_work\llvm-project\llvm-project\clang\test\Modules\fatal-module-loader-error.m:19:2: current parser token 'pragma'
# | Exception Code: 0xC000001D
# `-----------------------------
# error: command failed with exit status: 70

--

```
</details>
<details>
<summary>Clang.Modules/load-module-with-errors.m</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 15
rm -rf C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\load-module-with-errors.m.tmp
# executed command: rm -rf 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\load-module-with-errors.m.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 16
mkdir C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\load-module-with-errors.m.tmp
# executed command: mkdir 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\load-module-with-errors.m.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 17
mkdir C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\load-module-with-errors.m.tmp/prebuilt
# executed command: mkdir 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\load-module-with-errors.m.tmp/prebuilt'
# note: command had no output on stdout or stderr
# RUN: at line 19
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -fmodules -fallow-pcm-with-compiler-errors    -fmodule-name=error -o C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\load-module-with-errors.m.tmp/prebuilt/error.pcm    -x objective-c -emit-module C:\_work\llvm-project\llvm-project\clang\test\Modules/Inputs/error/module.modulemap
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -fmodules -fallow-pcm-with-compiler-errors -fmodule-name=error -o 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\load-module-with-errors.m.tmp/prebuilt/error.pcm' -x objective-c -emit-module 'C:\_work\llvm-project\llvm-project\clang\test\Modules/Inputs/error/module.modulemap'
# .---command stderr------------
# | While building module 'error':
# | In file included from <module-includes>:1:
# | C:\_work\llvm-project\llvm-project\clang\test\Modules/Inputs/error\error.h:3:9: fatal error: module 'undefined' not found
# |     3 | @import undefined;
# |       |         ^~~~~~~~~~
# `-----------------------------
# RUN: at line 22
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -fmodules -fallow-pcm-with-compiler-errors    -fmodule-file=error=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\load-module-with-errors.m.tmp/prebuilt/error.pcm    -fmodule-name=use_error_a -o C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\load-module-with-errors.m.tmp/prebuilt/use_error_a.pcm    -x objective-c -emit-module C:\_work\llvm-project\llvm-project\clang\test\Modules/Inputs/error/module.modulemap
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -fmodules -fallow-pcm-with-compiler-errors '-fmodule-file=error=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\load-module-with-errors.m.tmp/prebuilt/error.pcm' -fmodule-name=use_error_a -o 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\load-module-with-errors.m.tmp/prebuilt/use_error_a.pcm' -x objective-c -emit-module 'C:\_work\llvm-project\llvm-project\clang\test\Modules/Inputs/error/module.modulemap'
# note: command had no output on stdout or stderr
# RUN: at line 26
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -fmodules -fallow-pcm-with-compiler-errors    -fmodule-file=error=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\load-module-with-errors.m.tmp/prebuilt/error.pcm    -fmodule-name=use_error_b -o C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\load-module-with-errors.m.tmp/prebuilt/use_error_b.pcm    -x objective-c -emit-module C:\_work\llvm-project\llvm-project\clang\test\Modules/Inputs/error/module.modulemap
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -fmodules -fallow-pcm-with-compiler-errors '-fmodule-file=error=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\load-module-with-errors.m.tmp/prebuilt/error.pcm' -fmodule-name=use_error_b -o 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\load-module-with-errors.m.tmp/prebuilt/use_error_b.pcm' -x objective-c -emit-module 'C:\_work\llvm-project\llvm-project\clang\test\Modules/Inputs/error/module.modulemap'
# note: command had no output on stdout or stderr
# RUN: at line 32
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -fmodules -fallow-pcm-with-compiler-errors    -fprebuilt-module-path=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\load-module-with-errors.m.tmp/prebuilt -fmodules-cache-path=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\load-module-with-errors.m.tmp    -ast-print C:\_work\llvm-project\llvm-project\clang\test\Modules\load-module-with-errors.m | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\Modules\load-module-with-errors.m
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -fmodules -fallow-pcm-with-compiler-errors '-fprebuilt-module-path=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\load-module-with-errors.m.tmp/prebuilt' '-fmodules-cache-path=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\load-module-with-errors.m.tmp' -ast-print 'C:\_work\llvm-project\llvm-project\clang\test\Modules\load-module-with-errors.m'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\Modules\load-module-with-errors.m'
# note: command had no output on stdout or stderr
# RUN: at line 35
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -fsyntax-only -fmodules    -fprebuilt-module-path=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\load-module-with-errors.m.tmp/prebuilt -fmodules-cache-path=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\load-module-with-errors.m.tmp    -verify=pcherror C:\_work\llvm-project\llvm-project\clang\test\Modules\load-module-with-errors.m
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -fsyntax-only -fmodules '-fprebuilt-module-path=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\load-module-with-errors.m.tmp/prebuilt' '-fmodules-cache-path=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\load-module-with-errors.m.tmp' -verify=pcherror 'C:\_work\llvm-project\llvm-project\clang\test\Modules\load-module-with-errors.m'
# .---command stderr------------
# | error: 'pcherror-error' diagnostics seen but not expected: 
# |   File C:\_work\llvm-project\llvm-project\clang\test\Modules\load-module-with-errors.m Line 6: module file 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\load-module-with-errors.m.tmp/prebuilt\use_error_b.pcm' contains compiler errors
# |   File C:\_work\llvm-project\llvm-project\clang\test\Modules\load-module-with-errors.m Line 9: unknown type name 'Error'
# |   File C:\_work\llvm-project\llvm-project\clang\test\Modules\load-module-with-errors.m Line 10: call to undeclared function 'funca'; ISO C99 and later do not support implicit function declarations
# |   File C:\_work\llvm-project\llvm-project\clang\test\Modules\load-module-with-errors.m Line 11: call to undeclared function 'funcb'; ISO C99 and later do not support implicit function declarations
# | 4 errors generated.
# `-----------------------------
# 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/187858


More information about the cfe-commits mailing list