[clang] [Lexer] Prevent hitting the file system for ASTReader tokens (PR #192492)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 19 09:44:09 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 87418 tests passed
* 1430 tests skipped
* 11 tests failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.Frontend/dump-minimization-hints-cpp20-modules.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints-cpp20-modules.cpp.tmp
# executed command: rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints-cpp20-modules.cpp.tmp
# note: command had no output on stdout or stderr
# RUN: at line 2
mkdir -p /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints-cpp20-modules.cpp.tmp
# executed command: mkdir -p /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints-cpp20-modules.cpp.tmp
# note: command had no output on stdout or stderr
# RUN: at line 3
split-file /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Frontend/dump-minimization-hints-cpp20-modules.cpp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints-cpp20-modules.cpp.tmp
# executed command: split-file /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Frontend/dump-minimization-hints-cpp20-modules.cpp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints-cpp20-modules.cpp.tmp
# note: command had no output on stdout or stderr
# RUN: at line 4
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -std=c++20 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints-cpp20-modules.cpp.tmp/foo.cppm -emit-module-interface -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints-cpp20-modules.cpp.tmp/foo.pcm
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -std=c++20 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints-cpp20-modules.cpp.tmp/foo.cppm -emit-module-interface -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints-cpp20-modules.cpp.tmp/foo.pcm
# note: command had no output on stdout or stderr
# RUN: at line 5
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -std=c++20 -fprebuilt-module-path=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints-cpp20-modules.cpp.tmp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints-cpp20-modules.cpp.tmp/use.cpp -dump-minimization-hints=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints-cpp20-modules.cpp.tmp/decls
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -std=c++20 -fprebuilt-module-path=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints-cpp20-modules.cpp.tmp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints-cpp20-modules.cpp.tmp/use.cpp -dump-minimization-hints=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints-cpp20-modules.cpp.tmp/decls
# note: command had no output on stdout or stderr
# RUN: at line 6
cat /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints-cpp20-modules.cpp.tmp/decls
# executed command: cat /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints-cpp20-modules.cpp.tmp/decls
# .---command stdout------------
# | {
# | "required_ranges": [
# | {
# | "file": "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints-cpp20-modules.cpp.tmp/foo.cppm",
# | "range": [
# | {
# | "from": {
# | "line": 3,
# | "column": 1
# | },
# | "to": {
# | "line": 3,
# | "column": 21
# | }
# | },
# | {
# | "from": {
# | "line": 4,
# | "column": 3
# | },
# | "to": {
# | "line": 4,
# | "column": 3
# | }
# | },
# | {
# | "from": {
# | "line": 4,
# | "column": 10
# | },
# | "to": {
# | "line": 4,
# | "column": 42
# | }
# | },
# | {
# | "from": {
# | "line": 6,
# | "column": 1
# | },
# | "to": {
# | "line": 6,
# | "column": 1
# | }
# | },
# | {
# | "from": {
# | "line": 8,
# | "column": 1
# | },
# | "to": {
# | "line": 8,
# | "column": 1
# | }
# | },
# | {
# | "from": {
# | "line": 8,
# | "column": 8
# | },
# | "to": {
# | "line": 8,
# | "column": 24
# | }
# | },
# | {
# | "from": {
# | "line": 9,
# | "column": 3
# | },
# | "to": {
# | "line": 9,
# | "column": 35
# | }
# | },
# | {
# | "from": {
# | "line": 11,
# | "column": 1
# | },
# | "to": {
# | "line": 11,
# | "column": 1
# | }
# | }
# | ]
# | }
# | ]
# | }
# `-----------------------------
# RUN: at line 7
cat /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints-cpp20-modules.cpp.tmp/decls | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=RANGE /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Frontend/dump-minimization-hints-cpp20-modules.cpp
# executed command: cat /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints-cpp20-modules.cpp.tmp/decls
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=RANGE /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Frontend/dump-minimization-hints-cpp20-modules.cpp
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Frontend/dump-minimization-hints-cpp20-modules.cpp:20:16: error: RANGE-NEXT: expected string not found in input
# | // RANGE-NEXT: "column": 22
# | ^
# | <stdin>:12:12: note: scanning from here
# | "line": 3,
# | ^
# | <stdin>:13:2: note: possible intended match here
# | "column": 21
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Frontend/dump-minimization-hints-cpp20-modules.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 7: "from": {
# | 8: "line": 3,
# | 9: "column": 1
# | 10: },
# | 11: "to": {
# | 12: "line": 3,
# | next:20'0 X error: no match found
# | 13: "column": 21
# | next:20'0 ~~~~~~~~~~~~~~
# | next:20'1 ? possible intended match
# | 14: }
# | next:20'0 ~~~
# | 15: },
# | next:20'0 ~~~~
# | 16: {
# | next:20'0 ~~~
# | 17: "from": {
# | next:20'0 ~~~~~~~~~~~
# | 18: "line": 4,
# | next:20'0 ~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.Frontend/dump-minimization-hints.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints.cpp.tmp
# executed command: rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints.cpp.tmp
# note: command had no output on stdout or stderr
# RUN: at line 2
mkdir -p /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints.cpp.tmp
# executed command: mkdir -p /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints.cpp.tmp
# note: command had no output on stdout or stderr
# RUN: at line 3
split-file /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Frontend/dump-minimization-hints.cpp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints.cpp.tmp
# executed command: split-file /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Frontend/dump-minimization-hints.cpp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints.cpp.tmp
# note: command had no output on stdout or stderr
# RUN: at line 4
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -xc++ -fmodules -fmodule-name=foo -fmodule-map-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints.cpp.tmp/foo.cppmap -emit-module /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints.cpp.tmp/foo.cppmap -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints.cpp.tmp/foo.pcm
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -xc++ -fmodules -fmodule-name=foo -fmodule-map-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints.cpp.tmp/foo.cppmap -emit-module /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints.cpp.tmp/foo.cppmap -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints.cpp.tmp/foo.pcm
# note: command had no output on stdout or stderr
# RUN: at line 5
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -xc++ -fmodules -dump-minimization-hints=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints.cpp.tmp/decls -fmodule-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints.cpp.tmp/foo.pcm /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints.cpp.tmp/foo.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints.cpp.tmp/foo.o
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -xc++ -fmodules -dump-minimization-hints=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints.cpp.tmp/decls -fmodule-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints.cpp.tmp/foo.pcm /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints.cpp.tmp/foo.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints.cpp.tmp/foo.o
# note: command had no output on stdout or stderr
# RUN: at line 6
cat /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints.cpp.tmp/decls
# executed command: cat /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints.cpp.tmp/decls
# .---command stdout------------
# | {
# | "required_ranges": [
# | {
# | "file": "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints.cpp.tmp/foo.h",
# | "range": [
# | {
# | "from": {
# | "line": 1,
# | "column": 1
# | },
# | "to": {
# | "line": 9,
# | "column": 1
# | }
# | },
# | {
# | "from": {
# | "line": 11,
# | "column": 1
# | },
# | "to": {
# | "line": 11,
# | "column": 12
# | }
# | },
# | {
# | "from": {
# | "line": 13,
# | "column": 1
# | },
# | "to": {
# | "line": 15,
# | "column": 1
# | }
# | },
# | {
# | "from": {
# | "line": 19,
# | "column": 1
# | },
# | "to": {
# | "line": 19,
# | "column": 40
# | }
# | },
# | {
# | "from": {
# | "line": 20,
# | "column": 1
# | },
# | "to": {
# | "line": 23,
# | "column": 1
# | }
# | },
# | {
# | "from": {
# | "line": 31,
# | "column": 1
# | },
# | "to": {
# | "line": 31,
# | "column": 26
# | }
# | },
# | {
# | "from": {
# | "line": 32,
# | "column": 3
# | },
# | "to": {
# | "line": 32,
# | "column": 10
# | }
# | },
# | {
# | "from": {
# | "line": 34,
# | "column": 1
# | },
# | "to": {
# | "line": 34,
# | "column": 1
# | }
# | }
# | ]
# | }
# | ]
# | }
# `-----------------------------
# RUN: at line 7
cat /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints.cpp.tmp/decls | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=RANGE /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Frontend/dump-minimization-hints.cpp
# executed command: cat /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Frontend/Output/dump-minimization-hints.cpp.tmp/decls
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=RANGE /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Frontend/dump-minimization-hints.cpp
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Frontend/dump-minimization-hints.cpp:20:16: error: RANGE-NEXT: is not on the line after the previous match
# | // RANGE-NEXT: "column": 3
# | ^
# | <stdin>:69:2: note: 'next' match was here
# | "column": 3
# | ^
# | <stdin>:12:12: note: previous match ended here
# | "line": 9,
# | ^
# | <stdin>:13:1: note: non-matching line after previous match is here
# | "column": 1
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Frontend/dump-minimization-hints.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 64: }
# | 65: },
# | 66: {
# | 67: "from": {
# | 68: "line": 32,
# | 69: "column": 3
# | next:20 !~~~~~~~~~~ error: match on wrong line
# | 70: },
# | 71: "to": {
# | 72: "line": 32,
# | 73: "column": 10
# | 74: }
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.PCH/macro-undef.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -std=c++98 -emit-pch -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/PCH/Output/macro-undef.cpp.tmp /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/PCH/macro-undef.cpp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -std=c++98 -emit-pch -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/PCH/Output/macro-undef.cpp.tmp /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/PCH/macro-undef.cpp
# note: command had no output on stdout or stderr
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -std=c++98 -fsyntax-only -include-pch /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/PCH/Output/macro-undef.cpp.tmp /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/PCH/macro-undef.cpp -Wuninitialized -verify
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -std=c++98 -fsyntax-only -include-pch /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/PCH/Output/macro-undef.cpp.tmp /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/PCH/macro-undef.cpp -Wuninitialized -verify
# note: command had no output on stdout or stderr
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -std=c++98 -fsyntax-only -include-pch /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/PCH/Output/macro-undef.cpp.tmp /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/PCH/macro-undef.cpp -Wuninitialized -fdiagnostics-parseable-fixits 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/PCH/macro-undef.cpp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -std=c++98 -fsyntax-only -include-pch /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/PCH/Output/macro-undef.cpp.tmp /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/PCH/macro-undef.cpp -Wuninitialized -fdiagnostics-parseable-fixits
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/PCH/macro-undef.cpp
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/PCH/macro-undef.cpp:29:11: error: CHECK: expected string not found in input
# | // CHECK: fix-it:"{{.*}}":{15:10-15:10}:" = NULL"
# | ^
# | <stdin>:1:1: note: scanning from here
# | In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/PCH/macro-undef.cpp:1:
# | ^
# | <stdin>:12:91: note: possible intended match here
# | fix-it:"/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/PCH/macro-undef.cpp":{15:9-15:9}:" = NULL"
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/PCH/macro-undef.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/PCH/macro-undef.cpp:1:
# | check:29'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | 2: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/PCH/macro-undef.cpp:16:10: warning: variable 'p' is uninitialized when used here [-Wuninitialized]
# | check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 3: 16 | return p; // @16
# | check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~
# | 4: | ^
# | check:29'0 ~~~~~
# | 5: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/PCH/macro-undef.cpp:36:3: note: in instantiation of function template specialization 'f<int>' requested here
# | check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 6: 36 | f<int>(); // expected-note {{instantiation}}
# | check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 7: | ^
# | check:29'0 ~~~~~
# | 8: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/PCH/macro-undef.cpp:15:9: note: initialize the variable 'p' to silence this warning
# | check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 9: 15 | void *p; // @15
# | check:29'0 ~~~~~~~~~~~~~~~~~~~~~~
# | 10: | ^
# | check:29'0 ~~~~~
# | 11: | = NULL
# | check:29'0 ~~~~~~~~~~
# | 12: fix-it:"/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/PCH/macro-undef.cpp":{15:9-15:9}:" = NULL"
# | check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:29'1 ? possible intended match
# | 13: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/PCH/macro-undef.cpp:22:10: warning: variable 'p' is uninitialized when used here [-Wuninitialized]
# | check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 14: 22 | return p; // @22
# | check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~
# | 15: | ^
# | check:29'0 ~~~~~
# | 16: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/PCH/macro-undef.cpp:37:3: note: in instantiation of function template specialization 'g<int>' requested here
# | check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 17: 37 | g<int>(); // expected-note {{instantiation}}
# | check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
### Clangd Unit Tests
<details>
<summary>Clangd Unit Tests._/ClangdTests/DefineInlineTest/AddInline</summary>
```
Script:
--
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/clangd/unittests/./ClangdTests --gtest_filter=DefineInlineTest.AddInline
--
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/tweaks/DefineInlineTests.cpp:933
Value of: EditedFiles
Expected: has 1 element that file with contents (FileName: "/clangd-test/a.h", Contents: "inline void foo(){}")
Actual: {}
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/tweaks/DefineInlineTests.cpp:942
Value of: EditedFiles
Expected: has 1 element that file with contents (FileName: "/clangd-test/a.h", Contents: "inline const int foo(){ return 0; }")
Actual: {}
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/tweaks/DefineInlineTests.cpp:950
Value of: EditedFiles
Expected: has 1 element that file with contents (FileName: "/clangd-test/a.h", Contents: "inline void foo(){}")
Actual: {}
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/tweaks/DefineInlineTests.cpp:958
Value of: EditedFiles
Expected: has 1 element that file with contents (FileName: "/clangd-test/a.h", Contents: "constexpr void foo(){}")
Actual: {}
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/tweaks/DefineInlineTests.cpp:967
Value of: EditedFiles
Expected: has 1 element that file with contents (FileName: "/clangd-test/a.h", Contents: "struct Foo { void foo(){} };")
Actual: {}
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/tweaks/DefineInlineTests.cpp:977
Value of: EditedFiles
Expected: has 1 element that file with contents (FileName: "/clangd-test/a.h", Contents: "template <typename T> void foo(){}")
Actual: {}
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/tweaks/DefineInlineTests.cpp:991
Value of: EditedFiles
Expected: has 1 element that file with contents (FileName: "/clangd-test/a.h", Contents: "\n template <typename T> void foo();\n template <> inline void foo<int>(){}")
Actual: {}
```
</details>
<details>
<summary>Clangd Unit Tests._/ClangdTests/DefineInlineTest/TransformMembers</summary>
```
Script:
--
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/clangd/unittests/./ClangdTests --gtest_filter=DefineInlineTest.TransformMembers
--
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/tweaks/DefineInlineTests.cpp:384
Expected equality of these values:
apply(Test, &EditedFiles)
Which is: "fail: Couldn't find semicolon for target declaration."
Expected
Which is: "\n #include \"a.h\"\n "
With diff:
@@ -1,1 +1,3 @@
-fail: Couldn't find semicolon for target declaration.
+
+ #include \"a.h\"
+
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/tweaks/DefineInlineTests.cpp:393
Value of: EditedFiles
Expected: has 1 element that file with contents (FileName: "/clangd-test/a.h", Contents: "\n class Foo {\n void foo(){\n return;\n }\n };")
Actual: {}
```
</details>
<details>
<summary>Clangd Unit Tests._/ClangdTests/Hover/All</summary>
```
Script:
--
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/clangd/unittests/./ClangdTests --gtest_filter=Hover.All
--
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/HoverTests.cpp:3309
Expected equality of these values:
H->Definition
Which is: "#define MACRO\n\n// Expands to\n0"
Expected.Definition
Which is: "#define MACRO 0\n\n// Expands to\n0"
With diff:
@@ -1,3 +1,3 @@
-#define MACRO
+#define MACRO 0
// Expands to
Google Test trace:
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/HoverTests.cpp:3303: macro MACRO
Type: int
Value = 0
#define MACRO
// Expands to
0
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/HoverTests.cpp:3282: // Macro
#define MACRO 0
int main() { return ^[[MACRO]]; }
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/HoverTests.cpp:3309
Expected equality of these values:
H->Definition
Which is: "#define MACRO"
Expected.Definition
Which is: "#define MACRO 0"
Google Test trace:
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/HoverTests.cpp:3303: macro MACRO
#define MACRO
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/HoverTests.cpp:3282: // Macro
#define MACRO 0
#define MACRO2 ^[[MACRO]]
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/HoverTests.cpp:3309
Expected equality of these values:
H->Definition
Which is: "#define MACRO \\\n { \\\n return 0;\n\n// Expands to\n{\n return 0;\n}"
Expected.Definition
Which is: "#define MACRO \\\n { \\\n return 0; \\\n }\n\n// Expands to\n{\n return 0;\n}"
With diff:
@@ -1,5 +1,6 @@
#define MACRO \\
{ \\
- return 0;
+ return 0; \\
+ }
// Expands to
Google Test trace:
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/HoverTests.cpp:3303: macro MACRO
#define MACRO \
{ \
return 0;
// Expands to
{
return 0;
}
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/HoverTests.cpp:3282: // Macro
#define MACRO {\
return 0;\
}
int main() ^[[MACRO]]
```
</details>
<details>
<summary>Clangd Unit Tests._/ClangdTests/Hover/HoverMacroContentsLimit</summary>
```
Script:
--
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/clangd/unittests/./ClangdTests --gtest_filter=Hover.HoverMacroContentsLimit
--
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/HoverTests.cpp:5049
Expected equality of these values:
H->Definition
Which is: "#define Z4096 E(Z2048"
Case.ExpectedDefinition
Which is: "#define Z4096 E(Z2048)"
Google Test trace:
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/HoverTests.cpp:5038:
#define C(A) A##A // Concatenate
#define E(A) C(A) // Expand
#define Z0032 00000000000000000000000000000000
#define Z0064 E(Z0032)
#define Z0128 E(Z0064)
#define Z0256 E(Z0128)
#define Z0512 E(Z0256)
#define Z1024 E(Z0512)
#define Z2048 E(Z1024)
#define Z4096 E(Z2048) // 4096 zeroes
int main() { return [[^Z4096]]; }
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/HoverTests.cpp:5049
Expected equality of these values:
H->Definition
Which is: "#define Z4096 E(Z2048\n\n// Expands to\n0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
Case.ExpectedDefinition
Which is: "#define Z4096 E(Z2048)\n\n// Expands to\n0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
With diff:
@@ -1,3 +1,3 @@
-#define Z4096 E(Z2048
+#define Z4096 E(Z2048)
// Expands to
Google Test trace:
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/HoverTests.cpp:5038:
#define C(A) A##A // Concatenate
#define E(A) C(A) // Expand
#define Z0032 00000000000000000000000000000000
#define Z0064 E(Z0032)
#define Z0128 E(Z0064)
#define Z0256 E(Z0128)
#define Z0512 E(Z0256)
#define Z1024 E(Z0512)
#define Z2048 E(Z1024)
#define Z4096 E(Z2048) // 4096 zeroes
int main() { return [[^Z4096]]; }
```
</details>
<details>
<summary>Clangd Unit Tests._/ClangdTests/Hover/Structured</summary>
```
Script:
--
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/clangd/unittests/./ClangdTests --gtest_filter=Hover.Structured
--
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/HoverTests.cpp:1599
Expected equality of these values:
H->Definition
Which is: ""
Expected.Definition
Which is: "#define MACRO"
Google Test trace:
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/HoverTests.cpp:1575:
#define MACRO
[[MAC^RO]]
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/HoverTests.cpp:1599
Expected equality of these values:
H->Definition
Which is: "#define MACRO\n\n// Expands to\n41"
Expected.Definition
Which is: "#define MACRO 41\n\n// Expands to\n41"
With diff:
@@ -1,3 +1,3 @@
-#define MACRO
+#define MACRO 41
// Expands to
Google Test trace:
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/HoverTests.cpp:1575:
#define MACRO 41
int x = [[MAC^RO]];
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/HoverTests.cpp:1599
Expected equality of these values:
H->Definition
Which is: "#define MACRO(x, y, z) void foo(x, y, z\n\n// Expands to\nvoid foo(int, double d, bool z = false)"
Expected.Definition
Which is: "#define MACRO(x, y, z) void foo(x, y, z)\n\n// Expands to\nvoid foo(int, double d, bool z = false)"
With diff:
@@ -1,3 +1,3 @@
-#define MACRO(x, y, z) void foo(x, y, z
+#define MACRO(x, y, z) void foo(x, y, z)
// Expands to
Google Test trace:
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/HoverTests.cpp:1575:
// Best MACRO ever.
#define MACRO(x,y,z) void foo(x, y, z)
[[MAC^RO]](int, double d, bool z = false);
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/HoverTests.cpp:1599
Expected equality of these values:
H->Definition
Which is: "#define DECL_STR(NAME, VALUE) const char *v_##NAME = STRINGIFY(VALUE\n\n// Expands to\nconst char *v_foo = \"41\""
Expected.Definition
Which is: "#define DECL_STR(NAME, VALUE) const char *v_##NAME = STRINGIFY(VALUE)\n\n// Expands to\nconst char *v_foo = \"41\""
With diff:
@@ -1,3 +1,3 @@
-#define DECL_STR(NAME, VALUE) const char *v_##NAME = STRINGIFY(VALUE
+#define DECL_STR(NAME, VALUE) const char *v_##NAME = STRINGIFY(VALUE)
// Expands to
Google Test trace:
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/HoverTests.cpp:1575:
#define STRINGIFY_AUX(s) #s
#define STRINGIFY(s) STRINGIFY_AUX(s)
#define DECL_STR(NAME, VALUE) const char *v_##NAME = STRINGIFY(VALUE)
#define FOO 41
[[DECL^_STR]](foo, FOO);
```
</details>
<details>
<summary>Clangd Unit Tests._/ClangdTests/PreamblePatchTest/LocateMacroAtDeletion</summary>
```
Script:
--
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/clangd/unittests/./ClangdTests --gtest_filter=PreamblePatchTest.LocateMacroAtDeletion
--
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/PreambleTests.cpp:469
Value of: HI->Definition
Expected: is equal to "#define BAR"
Actual: ""
```
</details>
<details>
<summary>Clangd Unit Tests._/ClangdTests/TypeHierarchy/Preamble</summary>
```
Script:
--
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/clangd/unittests/./ClangdTests --gtest_filter=TypeHierarchy.Preamble
--
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/unittests/TypeHierarchyTests.cpp:581
Value of: Result.front()
Expected: (with name (N: "Child")) and (is an object whose given field value has 1 element and that element (with name (N: "Parent")) and (selection range is (R: 1:7-1:13)) and (is an object whose given field value is empty))
Actual: Child - {"data":{"parents":[{"parents":[],"symbolID":"FE546E7B648D69A7"}],"symbolID":"084104F273BE1FEE"},"kind":23,"name":"Child","range":{"end":{"character":1,"line":3},"start":{"character":0,"line":1}},"selectionRange":{"end":{"character":12,"line":1},"start":{"character":7,"line":1}},"uri":"file:///clangd-test/TestTU.cpp"}, whose given field is ({ Parent - {"data":{"parents":[],"symbolID":"FE546E7B648D69A7"},"kind":23,"name":"Parent","range":{"end":{"character":1,"line":3},"start":{"character":0,"line":1}},"selectionRange":{"end":{"character":7,"line":1},"start":{"character":7,"line":1}},"uri":"file:///clangd-test/TestTU.h"} }), whose value { Parent - {"data":{"parents":[],"symbolID":"FE546E7B648D69A7"},"kind":23,"name":"Parent","range":{"end":{"character":1,"line":3},"start":{"character":0,"line":1}},"selectionRange":{"end":{"character":7,"line":1},"start":{"character":7,"line":1}},"uri":"file:///clangd-test/TestTU.h"} } doesn't match, where the following matchers don't match any elements:
matcher #0: (with name (N: "Parent")) and (selection range is (R: 1:7-1:13)) and (is an object whose given field value is empty)
and where the following elements don't match any matchers:
element #0: Parent - {"data":{"parents":[],"symbolID":"FE546E7B648D69A7"},"kind":23,"name":"Parent","range":{"end":{"character":1,"line":3},"start":{"character":0,"line":1}},"selectionRange":{"end":{"character":7,"line":1},"start":{"character":7,"line":1}},"uri":"file:///clangd-test/TestTU.h"}
```
</details>
### lldb-api
<details>
<summary>lldb-api.python_api/run_locker/TestRunLocker.py</summary>
```
Script:
--
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --env LLVM_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include --env LLVM_TOOLS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --libcxx-include-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 --libcxx-include-target-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 --libcxx-library-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu --triple x86_64-unknown-linux-gnu --build-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex --lldb-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/lldb --compiler /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang --dsymutil /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/dsymutil --make /usr/bin/gmake --llvm-tools-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --lldb-obj-root /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb --lldb-libs-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --cmake-build-type Release /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/python_api/run_locker -p TestRunLocker.py
--
Exit Code: 1
Command Output (stdout):
--
lldb version 23.0.0git (https://github.com/llvm/llvm-project revision 07b271b219786e3fcafef552f5e1f169e5e6aae3)
clang revision 07b271b219786e3fcafef552f5e1f169e5e6aae3
llvm revision 07b271b219786e3fcafef552f5e1f169e5e6aae3
"can't evaluate expressions when the process is running."
Skipping the following test categories: msvcstl, dsym, pdb, gmodules, debugserver, objc
--
Command Output (stderr):
--
Traceback (most recent call last):
File "<input>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'EvaluateExpression'
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_run_locker (TestRunLocker.TestRunLocker.test_run_locker)
Log Files:
- /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/python_api/run_locker/TestRunLocker/Failure_test_run_locker.log
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_run_locker_stop_at_entry (TestRunLocker.TestRunLocker.test_run_locker_stop_at_entry)
======================================================================
FAIL: test_run_locker (TestRunLocker.TestRunLocker.test_run_locker)
Test that the run locker is set correctly when we launch
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 160, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/python_api/run_locker/TestRunLocker.py", line 23, in test_run_locker
self.runlocker_test(False)
File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/python_api/run_locker/TestRunLocker.py", line 110, in runlocker_test
self.assertIn(
AssertionError: "can't evaluate expressions when the process is running" not found in ''
Config=x86_64-/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang
----------------------------------------------------------------------
Ran 2 tests in 0.643s
FAILED (failures=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/192492
More information about the cfe-commits
mailing list