[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:11 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 53657 tests passed
* 1121 tests skipped
* 10 tests failed
## Failed Tests
(click on a test name to see its output)
### Clangd Unit Tests
<details>
<summary>Clangd Unit Tests._/ClangdTests_exe/DefineInlineTest/AddInline</summary>
```
Script:
--
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\clangd\unittests\.\ClangdTests.exe --gtest_filter=DefineInlineTest.AddInline
--
C:\_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: "C:\\clangd-test\\a.h", Contents: "inline void foo(){}")
Actual: {}
C:\_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: "C:\\clangd-test\\a.h", Contents: "inline const int foo(){ return 0; }")
Actual: {}
C:\_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: "C:\\clangd-test\\a.h", Contents: "inline void foo(){}")
Actual: {}
C:\_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: "C:\\clangd-test\\a.h", Contents: "constexpr void foo(){}")
Actual: {}
C:\_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: "C:\\clangd-test\\a.h", Contents: "struct Foo { void foo(){} };")
Actual: {}
C:\_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: "C:\\clangd-test\\a.h", Contents: "template <typename T> void foo(){}")
Actual: {}
C:\_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: "C:\\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_exe/DefineInlineTest/TransformMembers</summary>
```
Script:
--
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\clangd\unittests\.\ClangdTests.exe --gtest_filter=DefineInlineTest.TransformMembers
--
C:\_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\"
+
C:\_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: "C:\\clangd-test\\a.h", Contents: "\n class Foo {\n void foo(){\n return;\n }\n };")
Actual: {}
```
</details>
<details>
<summary>Clangd Unit Tests._/ClangdTests_exe/Hover/All</summary>
```
Script:
--
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\clangd\unittests\.\ClangdTests.exe --gtest_filter=Hover.All
--
C:\_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:
C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\unittests\HoverTests.cpp(3303): macro MACRO
Type: int
Value = 0
#define MACRO
// Expands to
0
C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\unittests\HoverTests.cpp(3282): // Macro
#define MACRO 0
int main() { return ^[[MACRO]]; }
C:\_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:
C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\unittests\HoverTests.cpp(3303): macro MACRO
#define MACRO
C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\unittests\HoverTests.cpp(3282): // Macro
#define MACRO 0
#define MACRO2 ^[[MACRO]]
C:\_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:
C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\unittests\HoverTests.cpp(3303): macro MACRO
#define MACRO \
{ \
return 0;
// Expands to
{
return 0;
}
C:\_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_exe/Hover/HoverMacroContentsLimit</summary>
```
Script:
--
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\clangd\unittests\.\ClangdTests.exe --gtest_filter=Hover.HoverMacroContentsLimit
--
C:\_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:
C:\_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]]; }
C:\_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:
C:\_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_exe/Hover/Structured</summary>
```
Script:
--
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\clangd\unittests\.\ClangdTests.exe --gtest_filter=Hover.Structured
--
C:\_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:
C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\unittests\HoverTests.cpp(1575):
#define MACRO
[[MAC^RO]]
C:\_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:
C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\unittests\HoverTests.cpp(1575):
#define MACRO 41
int x = [[MAC^RO]];
C:\_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:
C:\_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);
C:\_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:
C:\_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_exe/PreamblePatchTest/LocateMacroAtDeletion</summary>
```
Script:
--
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\clangd\unittests\.\ClangdTests.exe --gtest_filter=PreamblePatchTest.LocateMacroAtDeletion
--
C:\_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_exe/TypeHierarchy/Preamble</summary>
```
Script:
--
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\clangd\unittests\.\ClangdTests.exe --gtest_filter=TypeHierarchy.Preamble
--
C:\_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:///C:/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:///C:/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:///C:/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:///C:/clangd-test/TestTU.h"}
```
</details>
### Clang
<details>
<summary>Clang.Frontend/dump-minimization-hints-cpp20-modules.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
rm -rf C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints-cpp20-modules.cpp.tmp
# executed command: rm -rf 'C:\_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 C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints-cpp20-modules.cpp.tmp
# executed command: mkdir -p 'C:\_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 C:\_work\llvm-project\llvm-project\clang\test\Frontend\dump-minimization-hints-cpp20-modules.cpp C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints-cpp20-modules.cpp.tmp
# executed command: split-file 'C:\_work\llvm-project\llvm-project\clang\test\Frontend\dump-minimization-hints-cpp20-modules.cpp' 'C:\_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
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 -std=c++20 C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints-cpp20-modules.cpp.tmp/foo.cppm -emit-module-interface -o C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints-cpp20-modules.cpp.tmp/foo.pcm
# 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 -std=c++20 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints-cpp20-modules.cpp.tmp/foo.cppm' -emit-module-interface -o 'C:\_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
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 -std=c++20 -fprebuilt-module-path=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints-cpp20-modules.cpp.tmp C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints-cpp20-modules.cpp.tmp/use.cpp -dump-minimization-hints=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints-cpp20-modules.cpp.tmp/decls
# 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 -std=c++20 '-fprebuilt-module-path=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints-cpp20-modules.cpp.tmp' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints-cpp20-modules.cpp.tmp/use.cpp' '-dump-minimization-hints=C:\_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 C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints-cpp20-modules.cpp.tmp/decls
# executed command: cat 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints-cpp20-modules.cpp.tmp/decls'
# .---command stdout------------
# | {
# | "required_ranges": [
# | {
# | "file": "C:\_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 C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints-cpp20-modules.cpp.tmp/decls | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=RANGE C:\_work\llvm-project\llvm-project\clang\test\Frontend\dump-minimization-hints-cpp20-modules.cpp
# executed command: cat 'C:\_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: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=RANGE 'C:\_work\llvm-project\llvm-project\clang\test\Frontend\dump-minimization-hints-cpp20-modules.cpp'
# .---command stderr------------
# | C:\_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: C:\_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 C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints.cpp.tmp
# executed command: rm -rf 'C:\_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 C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints.cpp.tmp
# executed command: mkdir -p 'C:\_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 C:\_work\llvm-project\llvm-project\clang\test\Frontend\dump-minimization-hints.cpp C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints.cpp.tmp
# executed command: split-file 'C:\_work\llvm-project\llvm-project\clang\test\Frontend\dump-minimization-hints.cpp' 'C:\_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
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 -xc++ -fmodules -fmodule-name=foo -fmodule-map-file=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints.cpp.tmp/foo.cppmap -emit-module C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints.cpp.tmp/foo.cppmap -o C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints.cpp.tmp/foo.pcm
# 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 -xc++ -fmodules -fmodule-name=foo '-fmodule-map-file=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints.cpp.tmp/foo.cppmap' -emit-module 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints.cpp.tmp/foo.cppmap' -o 'C:\_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
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 -xc++ -fmodules -dump-minimization-hints=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints.cpp.tmp/decls -fmodule-file=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints.cpp.tmp/foo.pcm C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints.cpp.tmp/foo.cpp -o C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints.cpp.tmp/foo.o
# 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 -xc++ -fmodules '-dump-minimization-hints=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints.cpp.tmp/decls' '-fmodule-file=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints.cpp.tmp/foo.pcm' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints.cpp.tmp/foo.cpp' -o 'C:\_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 C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints.cpp.tmp/decls
# executed command: cat 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints.cpp.tmp/decls'
# .---command stdout------------
# | {
# | "required_ranges": [
# | {
# | "file": "C:\_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 C:\_work\llvm-project\llvm-project\build\tools\clang\test\Frontend\Output\dump-minimization-hints.cpp.tmp/decls | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=RANGE C:\_work\llvm-project\llvm-project\clang\test\Frontend\dump-minimization-hints.cpp
# executed command: cat 'C:\_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: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=RANGE 'C:\_work\llvm-project\llvm-project\clang\test\Frontend\dump-minimization-hints.cpp'
# .---command stderr------------
# | C:\_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: C:\_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
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 -std=c++98 -emit-pch -o C:\_work\llvm-project\llvm-project\build\tools\clang\test\PCH\Output\macro-undef.cpp.tmp C:\_work\llvm-project\llvm-project\clang\test\PCH\macro-undef.cpp
# 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 -std=c++98 -emit-pch -o 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\PCH\Output\macro-undef.cpp.tmp' 'C:\_work\llvm-project\llvm-project\clang\test\PCH\macro-undef.cpp'
# note: command had no output on stdout or stderr
# RUN: at line 2
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 -std=c++98 -fsyntax-only -include-pch C:\_work\llvm-project\llvm-project\build\tools\clang\test\PCH\Output\macro-undef.cpp.tmp C:\_work\llvm-project\llvm-project\clang\test\PCH\macro-undef.cpp -Wuninitialized -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 -std=c++98 -fsyntax-only -include-pch 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\PCH\Output\macro-undef.cpp.tmp' 'C:\_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
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 -std=c++98 -fsyntax-only -include-pch C:\_work\llvm-project\llvm-project\build\tools\clang\test\PCH\Output\macro-undef.cpp.tmp C:\_work\llvm-project\llvm-project\clang\test\PCH\macro-undef.cpp -Wuninitialized -fdiagnostics-parseable-fixits 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\PCH\macro-undef.cpp
# 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 -std=c++98 -fsyntax-only -include-pch 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\PCH\Output\macro-undef.cpp.tmp' 'C:\_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: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\PCH\macro-undef.cpp'
# .---command stderr------------
# | C:\_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 C:\_work\llvm-project\llvm-project\clang\test\PCH\macro-undef.cpp:1:
# | ^
# | <stdin>:12:76: note: possible intended match here
# | fix-it:"C:\\_work\\llvm-project\\llvm-project\\clang\\test\\PCH\\macro-undef.cpp":{15:9-15:9}:" = NULL"
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_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 C:\_work\llvm-project\llvm-project\clang\test\PCH\macro-undef.cpp:1:
# | check:29'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | 2: C:\_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: C:\_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: C:\_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:"C:\\_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: C:\_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: C:\_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>
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