[clang] [Clang][AST] Introduce `ExplicitInstantiationDecl` to preserve source info and fix diagnostic locations (PR #191658)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Apr 11 13:09:50 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 53535 tests passed
* 1703 tests skipped
* 10 tests failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.CodeGenCXX/dllexport.cpp</summary>
```
Exit Code: 2
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 -no-enable-noundef-analysis -triple i686-windows-msvc -emit-llvm -std=c++1y -fno-threadsafe-statics -fms-extensions -O1 -mconstructor-aliases -disable-llvm-passes -o - C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllexport.cpp -w -fms-compatibility-version=19.00 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -allow-deprecated-dag-overlap --check-prefix=MSC --check-prefix=M32 -check-prefix=MSVC2015 C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllexport.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 -no-enable-noundef-analysis -triple i686-windows-msvc -emit-llvm -std=c++1y -fno-threadsafe-statics -fms-extensions -O1 -mconstructor-aliases -disable-llvm-passes -o - 'C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllexport.cpp' -w -fms-compatibility-version=19.00
# .---command stderr------------
# | Assertion failed: (TSK == TSK_ExplicitInstantiationDeclaration) == ExternLoc.isValid() && "ExternLoc should be valid iff TSK is a declaration", file C:\_work\llvm-project\llvm-project\clang\include\clang/AST/DeclTemplate.h, line 3473
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
# | Stack dump:
# | 0. Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang.exe -cc1 -internal-isystem C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\23\\include -nostdsysteminc -no-enable-noundef-analysis -triple i686-windows-msvc -emit-llvm -std=c++1y -fno-threadsafe-statics -fms-extensions -O1 -mconstructor-aliases -disable-llvm-passes -o - C:\\_work\\llvm-project\\llvm-project\\clang\\test\\CodeGenCXX\\dllexport.cpp -w -fms-compatibility-version=19.00
# | 1. C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllexport.cpp:989:80: current parser token ';'
# | Exception Code: 0xC000001D
# | #0 0x00007ff7ca297996 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x807996)
# | #1 0x00007ffde06bbb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# | #2 0x00007ffde06bcad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# | #3 0x00007ffde06be4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# | #4 0x00007ffde06be6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# | #5 0x00007ff7ceb52fa1 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x50c2fa1)
# | #6 0x00007ff7d03e607c (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x695607c)
# | #7 0x00007ff7d09eb252 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f5b252)
# | #8 0x00007ff7d0a1c8fd (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f8c8fd)
# | #9 0x00007ff7d09d4da3 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f44da3)
# | #10 0x00007ff7d09d34a8 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f434a8)
# | #11 0x00007ff7d09d3311 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f43311)
# | #12 0x00007ff7d0a153b2 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f853b2)
# | #13 0x00007ff7d077fa50 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6cefa50)
# | #14 0x00007ff7d077d990 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6ced990)
# | #15 0x00007ff7cf6ff93e (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x5c6f93e)
# | #16 0x00007ff7cc8a220f (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x2e1220f)
# | #17 0x00007ff7ca3d8314 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x948314)
# | #18 0x00007ff7ca48c24c (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x9fc24c)
# | #19 0x00007ff7c9a988a1 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x88a1)
# | #20 0x00007ff7c9a941a4 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x41a4)
# | #21 0x00007ff7c9a9294c (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x294c)
# | #22 0x00007ff7c9aa7c5c (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x17c5c)
# | #23 0x00007ff7d0e86490 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x73f6490)
# | #24 0x00007ffdedc64cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #25 0x00007ffdf29fedcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -allow-deprecated-dag-overlap --check-prefix=MSC --check-prefix=M32 -check-prefix=MSVC2015 'C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllexport.cpp'
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -allow-deprecated-dag-overlap --check-prefix=MSC --check-prefix=M32 -check-prefix=MSVC2015 C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllexport.cpp
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
<details>
<summary>Clang.CodeGenCXX/dllimport-members.cpp</summary>
```
Exit Code: 2
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 -no-enable-noundef-analysis -disable-llvm-passes -triple i686-windows-msvc -fms-compatibility -emit-llvm -std=c++1y -O0 -o - C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllimport-members.cpp -DMSABI | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefix=MSC --check-prefix=M32 C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllimport-members.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 -no-enable-noundef-analysis -disable-llvm-passes -triple i686-windows-msvc -fms-compatibility -emit-llvm -std=c++1y -O0 -o - 'C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllimport-members.cpp' -DMSABI
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllimport-members.cpp:223:28: warning: 'ImportMembers::normalDef' redeclared without 'dllimport' attribute: 'dllexport' attribute added [-Winconsistent-dllimport]
# | 223 | void ImportMembers::normalDef() {} // dllimport ignored
# | | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllimport-members.cpp:103:45: note: previous declaration is here
# | 103 | __declspec(dllimport) void normalDef(); // dllimport ignored
# | | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllimport-members.cpp:226:28: warning: 'ImportMembers::virtualDef' redeclared without 'dllimport' attribute: 'dllexport' attribute added [-Winconsistent-dllimport]
# | 226 | void ImportMembers::virtualDef() {} // dllimport ignored
# | | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllimport-members.cpp:143:45: note: previous declaration is here
# | 143 | __declspec(dllimport) virtual void virtualDef(); // dllimport ignored
# | | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllimport-members.cpp:229:28: warning: 'ImportMembers::staticDef' redeclared without 'dllimport' attribute: 'dllexport' attribute added [-Winconsistent-dllimport]
# | 229 | void ImportMembers::staticDef() {} // dllimport ignored
# | | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllimport-members.cpp:168:45: note: previous declaration is here
# | 168 | __declspec(dllimport) static void staticDef(); // dllimport ignored
# | | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllimport-members.cpp:418:36: warning: 'ImportMembers::Nested::normalDef' redeclared without 'dllimport' attribute: 'dllexport' attribute added [-Winconsistent-dllimport]
# | 418 | void ImportMembers::Nested::normalDef() {} // dllimport ignored
# | | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllimport-members.cpp:297:45: note: previous declaration is here
# | 297 | __declspec(dllimport) void normalDef(); // dllimport ignored
# | | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllimport-members.cpp:421:36: warning: 'ImportMembers::Nested::virtualDef' redeclared without 'dllimport' attribute: 'dllexport' attribute added [-Winconsistent-dllimport]
# | 421 | void ImportMembers::Nested::virtualDef() {} // dllimport ignored
# | | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllimport-members.cpp:338:45: note: previous declaration is here
# | 338 | __declspec(dllimport) virtual void virtualDef(); // dllimport ignored
# | | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllimport-members.cpp:424:36: warning: 'ImportMembers::Nested::staticDef' redeclared without 'dllimport' attribute: 'dllexport' attribute added [-Winconsistent-dllimport]
# | 424 | void ImportMembers::Nested::staticDef() {} // dllimport ignored
# | | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllimport-members.cpp:363:45: note: previous declaration is here
# | 363 | __declspec(dllimport) static void staticDef(); // dllimport ignored
# | | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllimport-members.cpp:685:22: warning: 'ImportDefaultedDefs::ImportDefaultedDefs' redeclared without 'dllimport' attribute: 'dllexport' attribute added [-Winconsistent-dllimport]
# | 685 | ImportDefaultedDefs::ImportDefaultedDefs(ImportDefaultedDefs&&) = default; // dllimport ignored
# | | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllimport-members.cpp:645:25: note: previous declaration is here
# | 645 | __declspec(dllimport) ImportDefaultedDefs(ImportDefaultedDefs&&);
# | | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllimport-members.cpp:692:43: warning: 'ImportDefaultedDefs::operator=' redeclared without 'dllimport' attribute: 'dllexport' attribute added [-Winconsistent-dllimport]
# | 692 | ImportDefaultedDefs& ImportDefaultedDefs::operator=(ImportDefaultedDefs&&) = default; // dllimport ignored
# | | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllimport-members.cpp:646:46: note: previous declaration is here
# | 646 | __declspec(dllimport) ImportDefaultedDefs& operator=(ImportDefaultedDefs&&);
# | | ^
# | Assertion failed: (TSK == TSK_ExplicitInstantiationDeclaration) == ExternLoc.isValid() && "ExternLoc should be valid iff TSK is a declaration", file C:\_work\llvm-project\llvm-project\clang\include\clang/AST/DeclTemplate.h, line 3473
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
# | Stack dump:
# | 0. Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang.exe -cc1 -internal-isystem C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\23\\include -nostdsysteminc -no-enable-noundef-analysis -disable-llvm-passes -triple i686-windows-msvc -fms-compatibility -emit-llvm -std=c++1y -O0 -o - C:\\_work\\llvm-project\\llvm-project\\clang\\test\\CodeGenCXX\\dllimport-members.cpp -DMSABI
# | 1. C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllimport-members.cpp:781:66: current parser token ';'
# | Exception Code: 0xC000001D
# | #0 0x00007ff7ca297996 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x807996)
# | #1 0x00007ffde06bbb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# | #2 0x00007ffde06bcad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# | #3 0x00007ffde06be4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# | #4 0x00007ffde06be6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# | #5 0x00007ff7ceb52fa1 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x50c2fa1)
# | #6 0x00007ff7d03e66f1 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x69566f1)
# | #7 0x00007ff7d03e9729 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6959729)
# | #8 0x00007ff7d0a19394 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f89394)
# | #9 0x00007ff7d0a173c0 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f873c0)
# | #10 0x00007ff7d09d4f47 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f44f47)
# | #11 0x00007ff7d09d34a8 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f434a8)
# | #12 0x00007ff7d09d3311 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f43311)
# | #13 0x00007ff7d0a153b2 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f853b2)
# | #14 0x00007ff7d077fa50 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6cefa50)
# | #15 0x00007ff7d077d990 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6ced990)
# | #16 0x00007ff7cf6ff93e (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x5c6f93e)
# | #17 0x00007ff7cc8a220f (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x2e1220f)
# | #18 0x00007ff7ca3d8314 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x948314)
# | #19 0x00007ff7ca48c24c (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x9fc24c)
# | #20 0x00007ff7c9a988a1 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x88a1)
# | #21 0x00007ff7c9a941a4 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x41a4)
# | #22 0x00007ff7c9a9294c (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x294c)
# | #23 0x00007ff7c9aa7c5c (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x17c5c)
# | #24 0x00007ff7d0e86490 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x73f6490)
# | #25 0x00007ffdedc64cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #26 0x00007ffdf29fedcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' --check-prefix=MSC --check-prefix=M32 'C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllimport-members.cpp'
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefix=MSC --check-prefix=M32 C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllimport-members.cpp
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
<details>
<summary>Clang.CodeGenCXX/dllimport.cpp</summary>
```
Exit Code: 2
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 -no-enable-noundef-analysis -triple i686-windows-msvc -fno-rtti -fno-threadsafe-statics -fms-extensions -emit-llvm -std=c++1y -O0 -o - C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllimport.cpp -DMSABI -w | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefix=MSC --check-prefix=M32 C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllimport.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 -no-enable-noundef-analysis -triple i686-windows-msvc -fno-rtti -fno-threadsafe-statics -fms-extensions -emit-llvm -std=c++1y -O0 -o - 'C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllimport.cpp' -DMSABI -w
# .---command stderr------------
# | Assertion failed: (TSK == TSK_ExplicitInstantiationDeclaration) == ExternLoc.isValid() && "ExternLoc should be valid iff TSK is a declaration", file C:\_work\llvm-project\llvm-project\clang\include\clang/AST/DeclTemplate.h, line 3473
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
# | Stack dump:
# | 0. Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang.exe -cc1 -internal-isystem C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\23\\include -nostdsysteminc -no-enable-noundef-analysis -triple i686-windows-msvc -fno-rtti -fno-threadsafe-statics -fms-extensions -emit-llvm -std=c++1y -O0 -o - C:\\_work\\llvm-project\\llvm-project\\clang\\test\\CodeGenCXX\\dllimport.cpp -DMSABI -w
# | 1. C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllimport.cpp:525:56: current parser token ';'
# | Exception Code: 0xC000001D
# | #0 0x00007ff7ca297996 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x807996)
# | #1 0x00007ffde06bbb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# | #2 0x00007ffde06bcad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# | #3 0x00007ffde06be4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# | #4 0x00007ffde06be6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# | #5 0x00007ff7ceb52fa1 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x50c2fa1)
# | #6 0x00007ff7d03e66f1 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x69566f1)
# | #7 0x00007ff7d03e9729 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6959729)
# | #8 0x00007ff7d0a19394 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f89394)
# | #9 0x00007ff7d0a173c0 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f873c0)
# | #10 0x00007ff7d09d4f47 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f44f47)
# | #11 0x00007ff7d09d34a8 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f434a8)
# | #12 0x00007ff7d09d3311 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f43311)
# | #13 0x00007ff7d0a153b2 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f853b2)
# | #14 0x00007ff7d077fa50 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6cefa50)
# | #15 0x00007ff7d077d990 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6ced990)
# | #16 0x00007ff7cf6ff93e (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x5c6f93e)
# | #17 0x00007ff7cc8a220f (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x2e1220f)
# | #18 0x00007ff7ca3d8314 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x948314)
# | #19 0x00007ff7ca48c24c (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x9fc24c)
# | #20 0x00007ff7c9a988a1 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x88a1)
# | #21 0x00007ff7c9a941a4 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x41a4)
# | #22 0x00007ff7c9a9294c (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x294c)
# | #23 0x00007ff7c9aa7c5c (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x17c5c)
# | #24 0x00007ff7d0e86490 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x73f6490)
# | #25 0x00007ffdedc64cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #26 0x00007ffdf29fedcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' --check-prefix=MSC --check-prefix=M32 'C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllimport.cpp'
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefix=MSC --check-prefix=M32 C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\dllimport.cpp
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
<details>
<summary>Clang.CodeGenCXX/microsoft-abi-static-initializers.cpp</summary>
```
Exit Code: 2
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 -fms-extensions -fno-threadsafe-statics -emit-llvm C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\microsoft-abi-static-initializers.cpp -o - -mconstructor-aliases -triple=i386-pc-win32 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\microsoft-abi-static-initializers.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 -fms-extensions -fno-threadsafe-statics -emit-llvm 'C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\microsoft-abi-static-initializers.cpp' -o - -mconstructor-aliases -triple=i386-pc-win32
# .---command stderr------------
# | Assertion failed: (TSK == TSK_ExplicitInstantiationDeclaration) == ExternLoc.isValid() && "ExternLoc should be valid iff TSK is a declaration", file C:\_work\llvm-project\llvm-project\clang\include\clang/AST/DeclTemplate.h, line 3473
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
# | Stack dump:
# | 0. Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang.exe -cc1 -internal-isystem C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\23\\include -nostdsysteminc -fms-extensions -fno-threadsafe-statics -emit-llvm C:\\_work\\llvm-project\\llvm-project\\clang\\test\\CodeGenCXX\\microsoft-abi-static-initializers.cpp -o - -mconstructor-aliases -triple=i386-pc-win32
# | 1. C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\microsoft-abi-static-initializers.cpp:214:47: current parser token ';'
# | 2. C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\microsoft-abi-static-initializers.cpp:207:1: parsing namespace 'DynamicDLLImportInitVSMangling'
# | Exception Code: 0xC000001D
# | #0 0x00007ff7ca297996 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x807996)
# | #1 0x00007ffde06bbb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# | #2 0x00007ffde06bcad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# | #3 0x00007ffde06be4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# | #4 0x00007ffde06be6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# | #5 0x00007ff7ceb52fa1 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x50c2fa1)
# | #6 0x00007ff7d03e607c (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x695607c)
# | #7 0x00007ff7d09eb252 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f5b252)
# | #8 0x00007ff7d0a1c8fd (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f8c8fd)
# | #9 0x00007ff7d09d4da3 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f44da3)
# | #10 0x00007ff7d09d34a8 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f434a8)
# | #11 0x00007ff7d09d3311 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f43311)
# | #12 0x00007ff7d0a153b2 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f853b2)
# | #13 0x00007ff7d077fa50 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6cefa50)
# | #14 0x00007ff7d09e024b (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f5024b)
# | #15 0x00007ff7d09df796 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f4f796)
# | #16 0x00007ff7d0a1559e (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f8559e)
# | #17 0x00007ff7d077fa50 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6cefa50)
# | #18 0x00007ff7d077d990 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6ced990)
# | #19 0x00007ff7cf6ff93e (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x5c6f93e)
# | #20 0x00007ff7cc8a220f (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x2e1220f)
# | #21 0x00007ff7ca3d8314 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x948314)
# | #22 0x00007ff7ca48c24c (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x9fc24c)
# | #23 0x00007ff7c9a988a1 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x88a1)
# | #24 0x00007ff7c9a941a4 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x41a4)
# | #25 0x00007ff7c9a9294c (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x294c)
# | #26 0x00007ff7c9aa7c5c (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x17c5c)
# | #27 0x00007ff7d0e86490 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x73f6490)
# | #28 0x00007ffdedc64cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #29 0x00007ffdf29fedcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\microsoft-abi-static-initializers.cpp'
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGenCXX\microsoft-abi-static-initializers.cpp
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
<details>
<summary>Clang.SemaCXX/attr-exclude_from_explicit_instantiation.ignore-dllattr.cpp</summary>
```
Exit Code: 3221225501
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 -triple x86_64-win32 -fms-extensions -fsyntax-only -verify=expected,msc C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\attr-exclude_from_explicit_instantiation.ignore-dllattr.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 -triple x86_64-win32 -fms-extensions -fsyntax-only -verify=expected,msc 'C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\attr-exclude_from_explicit_instantiation.ignore-dllattr.cpp'
# .---command stderr------------
# | Assertion failed: (TSK == TSK_ExplicitInstantiationDeclaration) == ExternLoc.isValid() && "ExternLoc should be valid iff TSK is a declaration", file C:\_work\llvm-project\llvm-project\clang\include\clang/AST/DeclTemplate.h, line 3473
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
# | Stack dump:
# | 0. Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang.exe -cc1 -internal-isystem C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\23\\include -nostdsysteminc -triple x86_64-win32 -fms-extensions -fsyntax-only -verify=expected,msc C:\\_work\\llvm-project\\llvm-project\\clang\\test\\SemaCXX\\attr-exclude_from_explicit_instantiation.ignore-dllattr.cpp
# | 1. C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\attr-exclude_from_explicit_instantiation.ignore-dllattr.cpp:69:41: current parser token ';'
# | Exception Code: 0xC000001D
# | #0 0x00007ff7ca297996 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x807996)
# | #1 0x00007ffde06bbb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# | #2 0x00007ffde06bcad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# | #3 0x00007ffde06be4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# | #4 0x00007ffde06be6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# | #5 0x00007ff7ceb52fa1 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x50c2fa1)
# | #6 0x00007ff7d03e607c (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x695607c)
# | #7 0x00007ff7d09eb252 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f5b252)
# | #8 0x00007ff7d0a1c8fd (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f8c8fd)
# | #9 0x00007ff7d09d4da3 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f44da3)
# | #10 0x00007ff7d09d34a8 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f434a8)
# | #11 0x00007ff7d09d3311 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f43311)
# | #12 0x00007ff7d0a153b2 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f853b2)
# | #13 0x00007ff7d077fa50 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6cefa50)
# | #14 0x00007ff7d077d990 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6ced990)
# | #15 0x00007ff7cf6ff93e (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x5c6f93e)
# | #16 0x00007ff7cc8a220f (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x2e1220f)
# | #17 0x00007ff7ca3d8314 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x948314)
# | #18 0x00007ff7ca48c24c (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x9fc24c)
# | #19 0x00007ff7c9a988a1 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x88a1)
# | #20 0x00007ff7c9a941a4 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x41a4)
# | #21 0x00007ff7c9a9294c (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x294c)
# | #22 0x00007ff7c9aa7c5c (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x17c5c)
# | #23 0x00007ff7d0e86490 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x73f6490)
# | #24 0x00007ffdedc64cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #25 0x00007ffdf29fedcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d
--
```
</details>
<details>
<summary>Clang.SemaCXX/dllexport.cpp</summary>
```
Exit Code: 3221225501
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 -triple i686-win32 -fsyntax-only -fms-extensions -verify=expected,ms,non-gnu,ms-ps -std=c++11 -Wunsupported-dll-base-class-template C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\dllexport.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 -triple i686-win32 -fsyntax-only -fms-extensions -verify=expected,ms,non-gnu,ms-ps -std=c++11 -Wunsupported-dll-base-class-template 'C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\dllexport.cpp'
# .---command stderr------------
# | Assertion failed: (TSK == TSK_ExplicitInstantiationDeclaration) == ExternLoc.isValid() && "ExternLoc should be valid iff TSK is a declaration", file C:\_work\llvm-project\llvm-project\clang\include\clang/AST/DeclTemplate.h, line 3473
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
# | Stack dump:
# | 0. Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang.exe -cc1 -internal-isystem C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\23\\include -nostdsysteminc -triple i686-win32 -fsyntax-only -fms-extensions -verify=expected,ms,non-gnu,ms-ps -std=c++11 -Wunsupported-dll-base-class-template C:\\_work\\llvm-project\\llvm-project\\clang\\test\\SemaCXX\\dllexport.cpp
# | 1. C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\dllexport.cpp:436:80: current parser token ';'
# | Exception Code: 0xC000001D
# | #0 0x00007ff7ca297996 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x807996)
# | #1 0x00007ffde06bbb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# | #2 0x00007ffde06bcad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# | #3 0x00007ffde06be4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# | #4 0x00007ffde06be6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# | #5 0x00007ff7ceb52fa1 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x50c2fa1)
# | #6 0x00007ff7d03e607c (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x695607c)
# | #7 0x00007ff7d09eb252 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f5b252)
# | #8 0x00007ff7d0a1c8fd (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f8c8fd)
# | #9 0x00007ff7d09d4da3 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f44da3)
# | #10 0x00007ff7d09d34a8 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f434a8)
# | #11 0x00007ff7d09d3311 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f43311)
# | #12 0x00007ff7d0a153b2 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f853b2)
# | #13 0x00007ff7d077fa50 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6cefa50)
# | #14 0x00007ff7d077d990 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6ced990)
# | #15 0x00007ff7cf6ff93e (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x5c6f93e)
# | #16 0x00007ff7cc8a220f (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x2e1220f)
# | #17 0x00007ff7ca3d8314 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x948314)
# | #18 0x00007ff7ca48c24c (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x9fc24c)
# | #19 0x00007ff7c9a988a1 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x88a1)
# | #20 0x00007ff7c9a941a4 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x41a4)
# | #21 0x00007ff7c9a9294c (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x294c)
# | #22 0x00007ff7c9aa7c5c (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x17c5c)
# | #23 0x00007ff7d0e86490 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x73f6490)
# | #24 0x00007ffdedc64cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #25 0x00007ffdf29fedcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d
--
```
</details>
<details>
<summary>Clang.SemaCXX/dllimport.cpp</summary>
```
Exit Code: 3221225501
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 -triple i686-win32 -fsyntax-only -fms-extensions -verify -std=c++11 -Wunsupported-dll-base-class-template -DMS C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\dllimport.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 -triple i686-win32 -fsyntax-only -fms-extensions -verify -std=c++11 -Wunsupported-dll-base-class-template -DMS 'C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\dllimport.cpp'
# .---command stderr------------
# | Assertion failed: (TSK == TSK_ExplicitInstantiationDeclaration) == ExternLoc.isValid() && "ExternLoc should be valid iff TSK is a declaration", file C:\_work\llvm-project\llvm-project\clang\include\clang/AST/DeclTemplate.h, line 3473
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
# | Stack dump:
# | 0. Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang.exe -cc1 -internal-isystem C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\23\\include -nostdsysteminc -triple i686-win32 -fsyntax-only -fms-extensions -verify -std=c++11 -Wunsupported-dll-base-class-template -DMS C:\\_work\\llvm-project\\llvm-project\\clang\\test\\SemaCXX\\dllimport.cpp
# | 1. C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\dllimport.cpp:500:56: current parser token ';'
# | Exception Code: 0xC000001D
# | #0 0x00007ff7ca297996 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x807996)
# | #1 0x00007ffde06bbb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# | #2 0x00007ffde06bcad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# | #3 0x00007ffde06be4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# | #4 0x00007ffde06be6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# | #5 0x00007ff7ceb52fa1 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x50c2fa1)
# | #6 0x00007ff7d03e66f1 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x69566f1)
# | #7 0x00007ff7d03e9729 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6959729)
# | #8 0x00007ff7d0a19394 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f89394)
# | #9 0x00007ff7d0a173c0 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f873c0)
# | #10 0x00007ff7d09d4f47 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f44f47)
# | #11 0x00007ff7d09d34a8 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f434a8)
# | #12 0x00007ff7d09d3311 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f43311)
# | #13 0x00007ff7d0a153b2 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6f853b2)
# | #14 0x00007ff7d077fa50 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6cefa50)
# | #15 0x00007ff7d077d990 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x6ced990)
# | #16 0x00007ff7cf6ff93e (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x5c6f93e)
# | #17 0x00007ff7cc8a220f (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x2e1220f)
# | #18 0x00007ff7ca3d8314 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x948314)
# | #19 0x00007ff7ca48c24c (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x9fc24c)
# | #20 0x00007ff7c9a988a1 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x88a1)
# | #21 0x00007ff7c9a941a4 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x41a4)
# | #22 0x00007ff7c9a9294c (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x294c)
# | #23 0x00007ff7c9aa7c5c (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x17c5c)
# | #24 0x00007ff7d0e86490 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x73f6490)
# | #25 0x00007ffdedc64cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #26 0x00007ffdf29fedcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d
--
```
</details>
<details>
<summary>Clang.SemaHLSL/Language/groupsharedArgs/ExportNoInlineTest.hlsl</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 -triple dxil-pc-shadermodel6.3-library -finclude-default-header -std=hlsl202x -verify -Wconversion C:\_work\llvm-project\llvm-project\clang\test\SemaHLSL\Language\groupsharedArgs\ExportNoInlineTest.hlsl
# 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 -triple dxil-pc-shadermodel6.3-library -finclude-default-header -std=hlsl202x -verify -Wconversion 'C:\_work\llvm-project\llvm-project\clang\test\SemaHLSL\Language\groupsharedArgs\ExportNoInlineTest.hlsl'
# .---command stderr------------
# | error: 'expected-error' diagnostics seen but not expected:
# | File C:\_work\llvm-project\llvm-project\clang\test\SemaHLSL\Language\groupsharedArgs\ExportNoInlineTest.hlsl Line 18: export declaration can only be used on functions
# | 1 error generated.
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
### Clang Tools
<details>
<summary>Clang Tools.clang-tidy/checkers/misc/unused-using-decls.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
C:/Python312/python.exe C:/_work/llvm-project/llvm-project/clang-tools-extra/test/../test\clang-tidy\check_clang_tidy.py C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\checkers\misc\unused-using-decls.cpp misc-unused-using-decls C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp -- --fix-notes -- -fno-delayed-template-parsing -isystem C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\checkers\misc/Inputs
# executed command: C:/Python312/python.exe 'C:/_work/llvm-project/llvm-project/clang-tools-extra/test/../test\clang-tidy\check_clang_tidy.py' 'C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\checkers\misc\unused-using-decls.cpp' misc-unused-using-decls 'C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp' -- --fix-notes -- -fno-delayed-template-parsing -isystem 'C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\checkers\misc/Inputs'
# .---command stdout------------
# | Running ['clang-tidy', '--experimental-custom-checks', 'C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\tools\\extra\\test\\clang-tidy\\checkers\\misc\\Output\\unused-using-decls.cpp.tmp.cpp', '-fix', '--checks=-*,misc-unused-using-decls', '--fix-notes', '--config={}', '--', '-fno-delayed-template-parsing', '-isystem', 'C:\\_work\\llvm-project\\llvm-project\\clang-tools-extra\\test\\clang-tidy\\checkers\\misc/Inputs', '-std=c++11', '-nostdinc++', '-isystem', 'C:\\_work\\llvm-project\\llvm-project\\clang-tools-extra\\test\\clang-tidy\\checkers\\Inputs\\Headers\\std']...
# | ------------------------ clang-tidy output -----------------------
# | 10 warnings generated.
# |
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp:82:10: warning: using decl 'A' is unused [misc-unused-using-decls]
# | 82 | using n::A; // A
# | | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp:82:1: note: FIX-IT applied suggested code changes
# | 82 | using n::A; // A
# | | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp:82:10: note: remove the using
# | 82 | using n::A; // A
# | | ~~~~~~~~~^~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp:89:10: warning: using decl 'E' is unused [misc-unused-using-decls]
# | 89 | using n::E; // E
# | | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp:89:1: note: FIX-IT applied suggested code changes
# | 89 | using n::E; // E
# | | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp:89:10: note: remove the using
# | 89 | using n::E; // E
# | | ~~~~~~~~~^~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp:104:10: warning: using decl 'UnusedInstance' is unused [misc-unused-using-decls]
# | 104 | using n::UnusedInstance; // UnusedInstance
# | | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp:104:1: note: FIX-IT applied suggested code changes
# | 104 | using n::UnusedInstance; // UnusedInstance
# | | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp:104:10: note: remove the using
# | 104 | using n::UnusedInstance; // UnusedInstance
# | | ~~~~~~~~~^~~~~~~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp:107:10: warning: using decl 'UnusedFunc' is unused [misc-unused-using-decls]
# | 107 | using n::UnusedFunc; // UnusedFunc
# | | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp:107:1: note: FIX-IT applied suggested code changes
# | 107 | using n::UnusedFunc; // UnusedFunc
# | | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp:107:10: note: remove the using
# | 107 | using n::UnusedFunc; // UnusedFunc
# | | ~~~~~~~~~^~~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp:121:10: warning: using decl 'OverloadFunc' is unused [misc-unused-using-decls]
# | 121 | using n::OverloadFunc; // OverloadFunc
# | | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp:121:1: note: FIX-IT applied suggested code changes
# | 121 | using n::OverloadFunc; // OverloadFunc
# | | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp:121:10: note: remove the using
# | 121 | using n::OverloadFunc; // OverloadFunc
# | | ~~~~~~~~~^~~~~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp:156:10: warning: using decl 'Color1' is unused [misc-unused-using-decls]
# | 156 | using n::Color1;
# | | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp:156:1: note: FIX-IT applied suggested code changes
# | 156 | using n::Color1;
# | | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp:156:10: note: remove the using
# | 156 | using n::Color1;
# | | ~~~~~~~~~^~~~~~~
# | 157 | //
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp:158:10: warning: using decl 'Green' is unused [misc-unused-using-decls]
# | 158 | using n::Green;
# | | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp:158:1: note: FIX-IT applied suggested code changes
# | 158 | using n::Green;
# | | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp:158:10: note: remove the using
# | clang-tidy applied 7 of 7 suggested fixes.
# |
# | 158 | using n::Green;
# | | ~~~~~~~~~^~~~~~
# | 159 | //
# | Suppressed 3 warnings (3 with check filters).
# |
# |
# | ------------------------------------------------------------------
# | diff -u C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.orig C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp failed:
# | --- C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.orig 2026-04-11 19:59:53.818949000 +0000
# | +++ C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp 2026-04-11 19:59:53.886944600 +0000
# | @@ -79,14 +79,14 @@
# |
# |
# | // ----- Using declarations -----
# |
# | // eol-comments aren't removed (yet)
# |
# | -using n::A; // A
# |
# | +// A
# |
# | //
# |
# | //
# |
# | //
# |
# | using n::B;
# |
# | using n::C;
# |
# | using n::D;
# |
# | -using n::E; // E
# |
# | +// E
# |
# | //
# |
# | //
# |
# | using n::F;
# |
# | @@ -101,10 +101,10 @@
# | using n::UsedInstance;
# |
# | using n::UsedFunc;
# |
# | using n::UsedTemplateFunc;
# |
# | -using n::UnusedInstance; // UnusedInstance
# |
# | +// UnusedInstance
# |
# | //
# |
# | //
# |
# | -using n::UnusedFunc; // UnusedFunc
# |
# | +// UnusedFunc
# |
# | //
# |
# | //
# |
# | using n::operator""_w;
# |
# | @@ -118,7 +118,7 @@
# | UsedInTemplateFunc<T>();
# |
# | }
# |
# |
# |
# | -using n::OverloadFunc; // OverloadFunc
# |
# | +// OverloadFunc
# |
# | //
# |
# | //
# |
# |
# |
# | @@ -153,9 +153,7 @@
# | using n::H;
# |
# | }
# |
# |
# |
# | -using n::Color1;
# |
# | //
# |
# | -using n::Green;
# |
# | //
# |
# | using n::Color2;
# |
# | using n::Color3;
# |
# |
# | ------------------------------ Fixes -----------------------------
# | --- C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.orig 2026-04-11 19:59:53.818949000 +0000
# | +++ C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp 2026-04-11 19:59:53.886944600 +0000
# | @@ -79,14 +79,14 @@
# |
# |
# | // ----- Using declarations -----
# |
# | // eol-comments aren't removed (yet)
# |
# | -using n::A; // A
# |
# | +// A
# |
# | //
# |
# | //
# |
# | //
# |
# | using n::B;
# |
# | using n::C;
# |
# | using n::D;
# |
# | -using n::E; // E
# |
# | +// E
# |
# | //
# |
# | //
# |
# | using n::F;
# |
# | @@ -101,10 +101,10 @@
# | using n::UsedInstance;
# |
# | using n::UsedFunc;
# |
# | using n::UsedTemplateFunc;
# |
# | -using n::UnusedInstance; // UnusedInstance
# |
# | +// UnusedInstance
# |
# | //
# |
# | //
# |
# | -using n::UnusedFunc; // UnusedFunc
# |
# | +// UnusedFunc
# |
# | //
# |
# | //
# |
# | using n::operator""_w;
# |
# | @@ -118,7 +118,7 @@
# | UsedInTemplateFunc<T>();
# |
# | }
# |
# |
# |
# | -using n::OverloadFunc; // OverloadFunc
# |
# | +// OverloadFunc
# |
# | //
# |
# | //
# |
# |
# |
# | @@ -153,9 +153,7 @@
# | using n::H;
# |
# | }
# |
# |
# |
# | -using n::Color1;
# |
# | //
# |
# | -using n::Green;
# |
# | //
# |
# | using n::Color2;
# |
# | using n::Color3;
# |
# |
# | ------------------------------------------------------------------
# | FileCheck -input-file=C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp.msg C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\checkers\misc\unused-using-decls.cpp -check-prefixes=CHECK-MESSAGES -implicit-check-not={{warning|error}}: failed:
# | C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\checkers\misc\unused-using-decls.cpp:173:20: error: CHECK-MESSAGES: expected string not found in input
# |
# | // CHECK-MESSAGES: :[[@LINE-1]]:10: warning: using decl 'Constant' is unused
# |
# | ^
# |
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp.msg:57:179: note: scanning from here
# |
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp:158:10: warning: using decl 'Green' is unused [misc-unused-using-decls]
# |
# | ^
# |
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp.msg:57:179: note: with "@LINE-1" equal to "172"
# |
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp:158:10: warning: using decl 'Green' is unused [misc-unused-using-decls]
# |
# | ^
# |
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp.msg:63:136: note: possible intended match here
# |
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp:158:10: note: remove the using
# |
# | ^
# |
# |
# |
# | Input file: C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp.msg
# |
# | Check file: C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\checkers\misc\unused-using-decls.cpp
# |
# |
# |
# | -dump-input=help explains the following input dump.
# |
# |
# |
# | Input was:
# |
# | <<<<<<
# |
# | .
# |
# | .
# |
# | .
# |
# | 52: | ^
# |
# | 53: C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp:156:10: note: remove the using
# |
# | 54: 156 | using n::Color1;
# |
# | 55: | ~~~~~~~~~^~~~~~~
# |
# | 56: 157 | //
# |
# | 57: C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp:158:10: warning: using decl 'Green' is unused [misc-unused-using-decls]
# |
# | check:173'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |
# | check:173'1 with "@LINE-1" equal to "172"
# |
# | 58: 158 | using n::Green;
# |
# | check:173'0 ~~~~~~~~~~~~~~~~~~~~~~~
# |
# | 59: | ^
# |
# | check:173'0 ~~~~~
# |
# | 60: C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp:158:1: note: FIX-IT applied suggested code changes
# |
# | check:173'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |
# | 61: 158 | using n::Green;
# |
# | check:173'0 ~~~~~~~~~~~~~~~~~~~~~~~
# |
# | 62: | ^
# |
# | check:173'0 ~~~~~
# |
# | 63: C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\misc\Output\unused-using-decls.cpp.tmp.cpp:158:10: note: remove the using
# |
# | check:173'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |
# | check:173'2 ? possible intended match
# |
# | 64: clang-tidy applied 7 of 7 suggested fixes.
# |
# |
# | check:173'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |
# | 65: 158 | using n::Green;
# |
# | check:173'0 ~~~~~~~~~~~~~~~~~~~~~~~
# |
# | 66: | ~~~~~~~~~^~~~~~
# |
# | check:173'0 ~~~~~~~~~~~~~~~~~~~
# |
# | 67: 159 | //
# |
# | check:173'0 ~~~~~~~~~~
# |
# | 68: Suppressed 3 warnings (3 with check filters).
# |
# |
# | check:173'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |
# | >>>>>>
# |
# |
# `-----------------------------
# .---command stderr------------
# | Traceback (most recent call last):
# | File "C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py", line 554, in <module>
# | main()
# | File "C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py", line 550, in main
# | CheckRunner(args, extra_args).run()
# | File "C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py", line 433, in run
# | self.check_messages(main_output)
# | File "C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py", line 358, in check_messages
# | try_run(
# | File "C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py", line 64, in try_run
# | process_output = subprocess.check_output(args, stderr=subprocess.STDOUT).decode(
# | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# | File "c:\python312\Lib\subprocess.py", line 466, in check_output
# | return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
# | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# | File "c:\python312\Lib\subprocess.py", line 571, in run
# | raise CalledProcessError(retcode, process.args,
# | subprocess.CalledProcessError: Command '['FileCheck', '-input-file=C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\tools\\extra\\test\\clang-tidy\\checkers\\misc\\Output\\unused-using-decls.cpp.tmp.cpp.msg', 'C:\\_work\\llvm-project\\llvm-project\\clang-tools-extra\\test\\clang-tidy\\checkers\\misc\\unused-using-decls.cpp', '-check-prefixes=CHECK-MESSAGES', '-implicit-check-not={{warning|error}}:']' returned non-zero exit status 1.
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang Tools.clang-tidy/checkers/modernize/avoid-c-arrays.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
C:/Python312/python.exe C:/_work/llvm-project/llvm-project/clang-tools-extra/test/../test\clang-tidy\check_clang_tidy.py -std=c++17 C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\checkers\modernize\avoid-c-arrays.cpp modernize-avoid-c-arrays C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp
# executed command: C:/Python312/python.exe 'C:/_work/llvm-project/llvm-project/clang-tools-extra/test/../test\clang-tidy\check_clang_tidy.py' -std=c++17 'C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\checkers\modernize\avoid-c-arrays.cpp' modernize-avoid-c-arrays 'C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp'
# .---command stdout------------
# | Running ['clang-tidy', '--experimental-custom-checks', 'C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\tools\\extra\\test\\clang-tidy\\checkers\\modernize\\Output\\avoid-c-arrays.cpp.tmp.cpp', '-fix', '--checks=-*,modernize-avoid-c-arrays', '--config={}', '--', '-std=c++17', '-nostdinc++', '-isystem', 'C:\\_work\\llvm-project\\llvm-project\\clang-tools-extra\\test\\clang-tidy\\checkers\\Inputs\\Headers\\std']...
# | ------------------------ clang-tidy output -----------------------
# | 92 warnings generated.
# |
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:5:1: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 5 | int a[] = {1, 2};
# | | ^~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:8:1: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 8 | int b[1];
# | | ^~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:12:3: warning: do not declare C VLA arrays, use 'std::vector' instead [modernize-avoid-c-arrays]
# | 12 | int c[b[0]];
# | | ^~~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:24:3: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 24 | T d[Size];
# | | ^~~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:27:3: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 27 | int e[1];
# | | ^~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:31:7: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 31 | array<int[4], 2> d;
# | | ^~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:34:11: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 34 | using k = int[4];
# | | ^~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:50:3: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 50 | int e[1];
# | | ^~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:54:12: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 54 | unique_ptr<int[]> d2;
# | | ^~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:57:12: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 57 | using k2 = int[];
# | | ^~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:76:1: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 76 | int f3[] = {1, 2};
# | | ^~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:79:1: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 79 | int j3[1];
# | | ^~~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:83:3: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 83 | int f3[3] = {1, 2};
# | | ^~~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:86:3: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 86 | int j3[1];
# | | ^~~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:99:7: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 99 | const char name[] = "Some string";
# | | ^~~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:102:26: warning: do not declare C-style arrays, use 'std::array' or 'std::vector' instead [modernize-avoid-c-arrays]
# | 102 | void takeCharArray(const char name[]);
# | | ^~~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:122:38: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 122 | bool = std::is_same_v<U, int[]>,
# | | ^~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:124:36: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 124 | bool = std::is_same<U, int[10]>::value,
# | | ^~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:126:73: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 126 | std::enable_if_t<not(std::is_same_v<std::remove_const_t<U>, int[]>) && not(std::is_same_v<typename std::remove_const<U>::type, char[10]>), bool> = true,
# | | ^~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:126:140: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 126 | std::enable_if_t<not(std::is_same_v<std::remove_const_t<U>, int[]>) && not(std::is_same_v<typename std::remove_const<U>::type, char[10]>), bool> = true,
# | | ^~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:129:51: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 129 | typename = typename std::remove_const<int[10]>::type,
# | | ^~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:131:44: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 131 | typename = std::remove_const_t<int[]>>
# | | ^~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:137:7: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 137 | U field[3];
# | | ^~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:144:5: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 144 | T field[7];
# | | ^~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:150:23: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 150 | class MyClassTemplate<int[2]>;
# | | ^~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:153:21: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 153 | using MyArrayType = int[3];
# | | ^~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:175:3: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 175 | int array1[1];
# | | ^~~~~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:178:3: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 178 | T array2[2];
# | | ^~~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:185:24: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 185 | template <typename T = int[],
# | | ^~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:187:36: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 187 | bool = std::is_same_v<T, int[]>,
# | | ^~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:189:34: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 189 | bool = std::is_same<T, int[10]>::value,
# | | ^~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:191:71: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 191 | std::enable_if_t<not(std::is_same_v<std::remove_const_t<T>, int[]>) && not(std::is_same_v<typename std::remove_const<T>::type, char[10]>), bool> = true,
# | | ^~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:191:138: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 191 | std::enable_if_t<not(std::is_same_v<std::remove_const_t<T>, int[]>) && not(std::is_same_v<typename std::remove_const<T>::type, char[10]>), bool> = true,
# | | ^~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:194:49: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 194 | typename = typename std::remove_const<int[10]>::type,
# | | ^~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:196:42: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 196 | typename = std::remove_const_t<int[]>>
# | | ^~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:199:3: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 199 | int array3[3];
# | | ^~~~~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:202:3: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 202 | T array4[4];
# | | ^~~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:213:1: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 213 | int some_constant<int[5]>[5];
# | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:213:19: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 213 | int some_constant<int[5]>[5];
# | | ^~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:217:1: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 217 | int some_constant<decltype(ak)>[4];
# | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:225:1: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 225 | int some_constant<int[7]>[7]{};
# | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:225:19: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 225 | int some_constant<int[7]>[7]{};
# | | ^~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:230:1: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 230 | int some_constant<decltype(mk)>[3]{};
# | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:234:3: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 234 | int t[10];
# | | ^~~~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:243:8: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 243 | func<int[1]>({});
# | | ^~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:245:7: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 245 | fun<int[1]>({});
# | | ^~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:250:19: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 250 | MyClassTemplate<int[2]> var2{{}};
# | | ^~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:255:40: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 255 | decltype(var1)::MyInnerClassTemplate<char[5]> var5{{}};
# | | ^~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:260:54: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 260 | MyClassTemplate<decltype(t)>::MyInnerClassTemplate<char[8]> var8{{}};
# | | ^~~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:262:19: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 262 | MyClassTemplate<int[9]>::MyInnerClassTemplate<char[9]> var9{{}};
# | | ^~~~~~
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:262:49: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# | 262 | MyClassTemplate<int[9]>::MyInnerClassTemplate<char[9]> var9{{}};
# | | ^~~~~~~
# | Suppressed 2 warnings (2 with check filters).
# |
# |
# | ------------------------------------------------------------------
# | ------------------------------ Fixes -----------------------------
# |
# | ------------------------------------------------------------------
# | FileCheck -input-file=C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp.msg C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\checkers\modernize\avoid-c-arrays.cpp -check-prefixes=CHECK-MESSAGES -implicit-check-not={{warning|error}}: failed:
# | command line:1:22: error: IMPLICIT-CHECK-NOT: excluded string found in input
# |
# | -implicit-check-not='{{warning|error}}:'
# |
# | ^
# |
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp.msg:113:142: note: found here
# |
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:213:1: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# |
# | ^~~~~~~~
# |
# |
# |
# | Input file: C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp.msg
# |
# | Check file: C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\checkers\modernize\avoid-c-arrays.cpp
# |
# |
# |
# | -dump-input=help explains the following input dump.
# |
# |
# |
# | Input was:
# |
# | <<<<<<
# |
# | .
# |
# | .
# |
# | .
# |
# | 108: 199 | int array3[3];
# |
# | 109: | ^~~~~~~~~~~~~
# |
# | 110: C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:202:3: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# |
# | 111: 202 | T array4[4];
# |
# | 112: | ^~~~~~~~~~~
# |
# | 113: C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:213:1: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# |
# | not:imp1 !~~~~~~~ error: no match expected
# |
# | 114: 213 | int some_constant<int[5]>[5];
# |
# | 115: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |
# | 116: C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\modernize\Output\avoid-c-arrays.cpp.tmp.cpp:213:19: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
# |
# | 117: 213 | int some_constant<int[5]>[5];
# |
# | 118: | ^~~~~~
# |
# | .
# |
# | .
# |
# | .
# |
# | >>>>>>
# |
# |
# `-----------------------------
# .---command stderr------------
# | Traceback (most recent call last):
# | File "C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py", line 554, in <module>
# | main()
# | File "C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py", line 550, in main
# | CheckRunner(args, extra_args).run()
# | File "C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py", line 433, in run
# | self.check_messages(main_output)
# | File "C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py", line 358, in check_messages
# | try_run(
# | File "C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py", line 64, in try_run
# | process_output = subprocess.check_output(args, stderr=subprocess.STDOUT).decode(
# | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# | File "c:\python312\Lib\subprocess.py", line 466, in check_output
# | return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
# | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# | File "c:\python312\Lib\subprocess.py", line 571, in run
# | raise CalledProcessError(retcode, process.args,
# | subprocess.CalledProcessError: Command '['FileCheck', '-input-file=C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\tools\\extra\\test\\clang-tidy\\checkers\\modernize\\Output\\avoid-c-arrays.cpp.tmp.cpp.msg', 'C:\\_work\\llvm-project\\llvm-project\\clang-tools-extra\\test\\clang-tidy\\checkers\\modernize\\avoid-c-arrays.cpp', '-check-prefixes=CHECK-MESSAGES', '-implicit-check-not={{warning|error}}:']' returned non-zero exit status 1.
# `-----------------------------
# 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/191658
More information about the cfe-commits
mailing list