[clang] [clang][Lex] Add null check for `IncludeTok` in `PreprocessingRecord::InclusionDirective` (PR #192051)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 15 05:21:22 PDT 2026
=?utf-8?b?8J+NjFNoYXdu?= <m18824909883 at 163.com>,
=?utf-8?b?8J+NjFNoYXdu?= <m18824909883 at 163.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/192051 at github.com>
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 53646 tests passed
* 1101 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.Lexer/pp-inclusion-directive.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
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 -detailed-preprocessing-record C:\_work\llvm-project\llvm-project\clang\test\Lexer\pp-inclusion-directive.c
# 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 -detailed-preprocessing-record 'C:\_work\llvm-project\llvm-project\clang\test\Lexer\pp-inclusion-directive.c'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Lexer\pp-inclusion-directive.c:6:10: error: 'pp-inclusion-directive.h' file not found with <angled> include; use "quotes" instead
# | 6 | #include <pp-inclusion-directive.h>
# | | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# | | "pp-inclusion-directive.h"
# | C:\_work\llvm-project\llvm-project\clang\test\Lexer\pp-inclusion-directive.c:7:1: error: expected identifier or '('
# | 7 | @import pp-inclusion-directive;
# | | ^
# | C:\_work\llvm-project\llvm-project\clang\test\Lexer\pp-inclusion-directive.c:8:2: warning: #include_next in primary source file; will search from start of include path [-Winclude-next-outside-header]
# | 8 | #include_next pp-inclusion-directive.h
# | | ^
# | C:\_work\llvm-project\llvm-project\clang\test\Lexer\pp-inclusion-directive.c:8:15: error: expected "FILENAME" or <FILENAME>
# | 8 | #include_next pp-inclusion-directive.h
# | | ^
# | 1 warning and 3 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/192051
More information about the cfe-commits
mailing list