[clang] [clang-tools-extra] [Index] Reflect in SymbolSubKind whether a typedef points to a struct or a class (PR #181967)

via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 17 23:11:40 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 86283 tests passed
* 1267 tests skipped
* 4 tests failed

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

### Clang
<details>
<summary>Clang.Index/Core/index-dependent-source.cpp</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/c-index-test core -print-source-symbols -- /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/Core/index-dependent-source.cpp -std=c++14 -target x86_64-apple-macosx10.7 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/Core/index-dependent-source.cpp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/c-index-test core -print-source-symbols -- /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/Core/index-dependent-source.cpp -std=c++14 -target x86_64-apple-macosx10.7
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/Core/index-dependent-source.cpp
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/Core/index-dependent-source.cpp:99:11: error: CHECK: expected string not found in input
# | // CHECK: [[@LINE-1]]:33 | type-alias/C++ | TypeAlias | c:@ST>2#T#T at TemplateClass@TypeAlias | <no-cgname> | Ref,RelCont | rel: 1
# |           ^
# | <stdin>:1074:94: note: scanning from here
# | 96:33 | enum/C | Enum | c:@ST>2#T#T at TemplateClass@E at Enum | <no-cgname> | Ref,RelCont | rel: 1
# |                                                                                              ^
# | <stdin>:1074:94: note: with "@LINE-1" equal to "98"
# | 96:33 | enum/C | Enum | c:@ST>2#T#T at TemplateClass@E at Enum | <no-cgname> | Ref,RelCont | rel: 1
# |                                                                                              ^
# | <stdin>:1078:14: note: possible intended match here
# | 98:33 | type-alias/using-class/C++ | TypeAlias | c:@ST>2#T#T at TemplateClass@TypeAlias | <no-cgname> | Ref,RelCont | rel: 1
# |              ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/Core/index-dependent-source.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |          1069:  RelCont | indexSimpleDependentDeclarations | c:@FT@>2#T#TindexSimpleDependentDeclarations#&1>@ST>2#T#T at TemplateClass2t0.0t0.1#v# 
# |          1070: 94:33 | struct/C | Struct | c:@ST>2#T#T at TemplateClass@S at Struct | <no-cgname> | Ref,RelCont | rel: 1 
# |          1071:  RelCont | indexSimpleDependentDeclarations | c:@FT@>2#T#TindexSimpleDependentDeclarations#&1>@ST>2#T#T at TemplateClass2t0.0t0.1#v# 
# |          1072: 94:12 | class(Gen)/C++ | TemplateClass | c:@ST>2#T#T at TemplateClass | <no-cgname> | Ref,RelCont | rel: 1 
# |          1073:  RelCont | indexSimpleDependentDeclarations | c:@FT@>2#T#TindexSimpleDependentDeclarations#&1>@ST>2#T#T at TemplateClass2t0.0t0.1#v# 
# |          1074: 96:33 | enum/C | Enum | c:@ST>2#T#T at TemplateClass@E at Enum | <no-cgname> | Ref,RelCont | rel: 1 
# | check:99'0                                                                                                  X error: no match found
# | check:99'1                                                                                                    with "@LINE-1" equal to "98"
# |          1075:  RelCont | indexSimpleDependentDeclarations | c:@FT@>2#T#TindexSimpleDependentDeclarations#&1>@ST>2#T#T at TemplateClass2t0.0t0.1#v# 
# | check:99'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |          1076: 96:12 | class(Gen)/C++ | TemplateClass | c:@ST>2#T#T at TemplateClass | <no-cgname> | Ref,RelCont | rel: 1 
# | check:99'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |          1077:  RelCont | indexSimpleDependentDeclarations | c:@FT@>2#T#TindexSimpleDependentDeclarations#&1>@ST>2#T#T at TemplateClass2t0.0t0.1#v# 
# | check:99'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |          1078: 98:33 | type-alias/using-class/C++ | TypeAlias | c:@ST>2#T#T at TemplateClass@TypeAlias | <no-cgname> | Ref,RelCont | rel: 1 
# | check:99'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:99'2                  ?                                                                                                             possible intended match
# |          1079:  RelCont | indexSimpleDependentDeclarations | c:@FT@>2#T#TindexSimpleDependentDeclarations#&1>@ST>2#T#T at TemplateClass2t0.0t0.1#v# 
# | check:99'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |          1080: 98:12 | class(Gen)/C++ | TemplateClass | c:@ST>2#T#T at TemplateClass | <no-cgname> | Ref,RelCont | rel: 1 
# | check:99'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |          1081:  RelCont | indexSimpleDependentDeclarations | c:@FT@>2#T#TindexSimpleDependentDeclarations#&1>@ST>2#T#T at TemplateClass2t0.0t0.1#v# 
# | check:99'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |          1082: 100:33 | type-alias/C | Typedef | c:index-dependent-source.cpp at ST>2#T#T at TemplateClass@T at Typedef | <no-cgname> | Ref,RelCont | rel: 1 
# | check:99'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |          1083:  RelCont | indexSimpleDependentDeclarations | c:@FT@>2#T#TindexSimpleDependentDeclarations#&1>@ST>2#T#T at TemplateClass2t0.0t0.1#v# 
# | check:99'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             .
# |             .
# |             .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.Index/Core/index-instantiated-source.cpp</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/c-index-test core -print-source-symbols -- /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/Core/index-instantiated-source.cpp -std=c++14 -target x86_64-apple-macosx10.7 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/Core/index-instantiated-source.cpp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/c-index-test core -print-source-symbols -- /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/Core/index-instantiated-source.cpp -std=c++14 -target x86_64-apple-macosx10.7
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/Core/index-instantiated-source.cpp
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/Core/index-instantiated-source.cpp:41:11: error: CHECK: expected string not found in input
# | // CHECK: [[@LINE-1]]:11 | type-alias/C++ | TypeAlias | c:@ST>2#T#T at TemplateClass@S at NestedType@TypeAlias |
# |           ^
# | <stdin>:993:93: note: scanning from here
# | 35:11 | class/C++ | SubNestedType | c:@ST>2#T#T at TemplateClass@S at NestedType@S at SubNestedType | <no-cgname> | Def,RelChild | rel: 1
# |                                                                                             ^
# | <stdin>:993:93: note: with "@LINE-1" equal to "40"
# | 35:11 | class/C++ | SubNestedType | c:@ST>2#T#T at TemplateClass@S at NestedType@S at SubNestedType | <no-cgname> | Def,RelChild | rel: 1
# |                                                                                             ^
# | <stdin>:999:3: note: possible intended match here
# | 40:11 | type-alias/using-class/C++ | TypeAlias | c:@ST>2#T#T at TemplateClass@S at NestedType@TypeAlias | <no-cgname> | Def,RelChild | rel: 1
# |   ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/Core/index-instantiated-source.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |           988:  RelChild | TemplateClass | c:@ST>2#T#T at TemplateClass 
# |           989: 29:10 | struct/C++ | NestedType | c:@ST>2#T#T at TemplateClass@S at NestedType | <no-cgname> | Def,RelChild | rel: 1 
# |           990:  RelChild | TemplateClass | c:@ST>2#T#T at TemplateClass 
# |           991: 32:7 | field/C++ | nestedField | c:@ST>2#T#T at TemplateClass@S at NestedType@FI at nestedField | <no-cgname> | Def,RelChild | rel: 1 
# |           992:  RelChild | NestedType | c:@ST>2#T#T at TemplateClass@S at NestedType 
# |           993: 35:11 | class/C++ | SubNestedType | c:@ST>2#T#T at TemplateClass@S at NestedType@S at SubNestedType | <no-cgname> | Def,RelChild | rel: 1 
# | check:41'0                                                                                                 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | check:41'1                                                                                                                                       with "@LINE-1" equal to "40"
# |           994:  RelChild | NestedType | c:@ST>2#T#T at TemplateClass@S at NestedType 
# | check:41'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           995: 38:7 | constructor/C++ | SubNestedType | c:@ST>2#T#T at TemplateClass@S at NestedType@S at SubNestedType@F at SubNestedType#I# | <no-cgname> | Decl,RelChild | rel: 1 
# | check:41'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           996:  RelChild | SubNestedType | c:@ST>2#T#T at TemplateClass@S at NestedType@S at SubNestedType 
# | check:41'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           997: 38:7 | class/C++ | SubNestedType | c:@ST>2#T#T at TemplateClass@S at NestedType@S at SubNestedType | <no-cgname> | Ref,RelCont,NameReference | rel: 1 
# | check:41'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           998:  RelCont | SubNestedType | c:@ST>2#T#T at TemplateClass@S at NestedType@S at SubNestedType 
# | check:41'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           999: 40:11 | type-alias/using-class/C++ | TypeAlias | c:@ST>2#T#T at TemplateClass@S at NestedType@TypeAlias | <no-cgname> | Def,RelChild | rel: 1 
# | check:41'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:41'2       ?                                                                                                                                      possible intended match
# |          1000:  RelChild | NestedType | c:@ST>2#T#T at TemplateClass@S at NestedType 
# | check:41'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |          1001: 43:17 | type-alias/C | Typedef | c:index-instantiated-source.cpp at ST>2#T#T at TemplateClass@S at NestedType@T at Typedef | <no-cgname> | Def,RelChild | rel: 1 
# | check:41'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |          1002:  RelChild | NestedType | c:@ST>2#T#T at TemplateClass@S at NestedType 
# | check:41'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |          1003: 46:10 | enum/C | Enum | c:@ST>2#T#T at TemplateClass@S at NestedType@E at Enum | <no-cgname> | Def,RelChild | rel: 1 
# | check:41'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |          1004:  RelChild | NestedType | c:@ST>2#T#T at TemplateClass@S at NestedType 
# | check:41'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             .
# |             .
# |             .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.Index/Core/index-pch.cpp</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/c-index-test core -print-source-symbols -- /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/Core/index-pch.cpp -std=c++14 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/Core/index-pch.cpp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/c-index-test core -print-source-symbols -- /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/Core/index-pch.cpp -std=c++14
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/Core/index-pch.cpp
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/Core/index-pch.cpp:13:11: error: CHECK: expected string not found in input
# | // CHECK: [[@LINE+4]]:9 | type-alias/C++ | is_detected
# |           ^
# | <stdin>:917:95: note: scanning from here
# | 7:8 | struct(Gen)/C++ | DETECTOR | c:@ST>4#T#T#t>1#pT#pT at DETECTOR | <no-cgname> | Def | rel: 0
# |                                                                                               ^
# | <stdin>:917:95: note: with "@LINE+4" equal to "17"
# | 7:8 | struct(Gen)/C++ | DETECTOR | c:@ST>4#T#T#t>1#pT#pT at DETECTOR | <no-cgname> | Def | rel: 0
# |                                                                                               ^
# | <stdin>:921:11: note: possible intended match here
# | 17:9 | type-alias/using-class/C++ | is_detected | c:@is_detected | <no-cgname> | Def | rel: 0
# |           ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/Core/index-pch.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |           912: 459:9 | macro/C | __STDC_EMBED_NOT_FOUND__ | c:@macro at __STDC_EMBED_NOT_FOUND__ | Def | 
# |           913: 460:9 | macro/C | __STDC_EMBED_FOUND__ | c:@macro at __STDC_EMBED_FOUND__ | Def | 
# |           914: 460:9 | macro/C | __STDC_EMBED_FOUND__ | c:@macro at __STDC_EMBED_FOUND__ | Def | 
# |           915: 461:9 | macro/C | __STDC_EMBED_EMPTY__ | c:@macro at __STDC_EMBED_EMPTY__ | Def | 
# |           916: 461:9 | macro/C | __STDC_EMBED_EMPTY__ | c:@macro at __STDC_EMBED_EMPTY__ | Def | 
# |           917: 7:8 | struct(Gen)/C++ | DETECTOR | c:@ST>4#T#T#t>1#pT#pT at DETECTOR | <no-cgname> | Def | rel: 0 
# | check:13'0                                                                                                   X error: no match found
# | check:13'1                                                                                                     with "@LINE+4" equal to "17"
# |           918: 8:8 | type-alias/using-class/C++ | value_t | c:@ST>4#T#T#t>1#pT#pT at DETECTOR@value_t | <no-cgname> | Def,RelChild | rel: 1 
# | check:13'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           919:  RelChild | DETECTOR | c:@ST>4#T#T#t>1#pT#pT at DETECTOR 
# | check:13'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           920: 11:8 | struct/C | nonesuch | c:@S at nonesuch | <no-cgname> | Def | rel: 0 
# | check:13'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           921: 17:9 | type-alias/using-class/C++ | is_detected | c:@is_detected | <no-cgname> | Def | rel: 0 
# | check:13'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:13'2               ?                                                                                    possible intended match
# |           922: 17:73 | type-alias/using-class/C++ | value_t | c:@ST>4#T#T#t>1#pT#pT at DETECTOR@value_t | <no-cgname> | Ref,RelCont | rel: 1 
# | check:13'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           923:  RelCont | is_detected | c:@is_detected 
# | check:13'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           924: 17:32 | struct(Gen)/C++ | DETECTOR | c:@ST>4#T#T#t>1#pT#pT at DETECTOR | <no-cgname> | Ref,RelCont | rel: 1 
# | check:13'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           925:  RelCont | is_detected | c:@is_detected 
# | check:13'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           926: 17:41 | struct/C | nonesuch | c:@S at nonesuch | <no-cgname> | Ref,RelCont | rel: 1 
# | check:13'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           927:  RelCont | is_detected | c:@is_detected 
# | check:13'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.Index/Core/index-source.cpp</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/c-index-test core -print-source-symbols -- /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/Core/index-source.cpp -std=c++1z -target x86_64-apple-macosx10.7 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/Core/index-source.cpp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/c-index-test core -print-source-symbols -- /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/Core/index-source.cpp -std=c++1z -target x86_64-apple-macosx10.7
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/Core/index-source.cpp:94:12: warning: explicit specialization cannot have a storage class
# |    94 | template<> static const int tmplVar<int> = 0;
# |       |            ^~~~~~
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/Core/index-source.cpp:544:3: warning: expression result unused
# |   544 |   __builtin_offsetof(Struct, field);
# |       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/Core/index-source.cpp:547:3: warning: expression result unused
# |   547 |   __builtin_offsetof(Struct2, array[1][0].field);
# |       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# `-----------------------------
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/Core/index-source.cpp
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/Core/index-source.cpp:175:11: error: CHECK: expected string not found in input
# | // CHECK: [[@LINE-1]]:9 | type-alias/C++ | TypeAlias | c:@S at PseudoOverridesInSpecializations>#d#I at TypeAlias | <no-cgname> | Def,RelChild,RelSpecialization | rel: 2
# |           ^
# | <stdin>:1147:102: note: scanning from here
# |  RelSpecialization | TypeDef | c:index-source.cpp at ST>2#T#T at PseudoOverridesInSpecializations@T at TypeDef
# |                                                                                                      ^
# | <stdin>:1147:102: note: with "@LINE-1" equal to "174"
# |  RelSpecialization | TypeDef | c:index-source.cpp at ST>2#T#T at PseudoOverridesInSpecializations@T at TypeDef
# |                                                                                                      ^
# | <stdin>:1148:15: note: possible intended match here
# | 174:9 | type-alias/using-class/C++ | TypeAlias | c:@S at PseudoOverridesInSpecializations>#d#I at TypeAlias | <no-cgname> | Def,RelChild,RelSpecialization | rel: 2
# |               ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Index/Core/index-source.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |              .
# |              .
# |              .
# |           1142: 164:17 | static-property/C++ | variable | c:@S at PseudoOverridesInSpecializations>#d#I at variable | __ZN32PseudoOverridesInSpecializationsIdiE8variableE | Decl,RelChild,RelSpecialization | rel: 2 
# |           1143:  RelChild | PseudoOverridesInSpecializations | c:@S at PseudoOverridesInSpecializations>#d#I 
# |           1144:  RelSpecialization | variable | c:@ST>2#T#T at PseudoOverridesInSpecializations@variable 
# |           1145: 169:18 | type-alias/C | TypeDef | c:index-source.cpp at S@PseudoOverridesInSpecializations>#d#I at T@TypeDef | <no-cgname> | Def,RelChild,RelSpecialization | rel: 2 
# |           1146:  RelChild | PseudoOverridesInSpecializations | c:@S at PseudoOverridesInSpecializations>#d#I 
# |           1147:  RelSpecialization | TypeDef | c:index-source.cpp at ST>2#T#T at PseudoOverridesInSpecializations@T at TypeDef 
# | check:175'0                                                                                                          X error: no match found
# | check:175'1                                                                                                            with "@LINE-1" equal to "174"
# |           1148: 174:9 | type-alias/using-class/C++ | TypeAlias | c:@S at PseudoOverridesInSpecializations>#d#I at TypeAlias | <no-cgname> | Def,RelChild,RelSpecialization | rel: 2 
# | check:175'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:175'2                   ?                                                                                                                                                possible intended match
# |           1149:  RelChild | PseudoOverridesInSpecializations | c:@S at PseudoOverridesInSpecializations>#d#I 
# | check:175'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1150:  RelSpecialization | TypeAlias | c:@ST>2#T#T at PseudoOverridesInSpecializations@TypeAlias 
# | check:175'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1151: 179:8 | enum/C | anEnum | c:@S at PseudoOverridesInSpecializations>#d#I at E@anEnum | <no-cgname> | Def,RelChild,RelSpecialization | rel: 2 
# | check:175'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1152:  RelChild | PseudoOverridesInSpecializations | c:@S at PseudoOverridesInSpecializations>#d#I 
# | check:175'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1153:  RelSpecialization | anEnum | c:@ST>2#T#T at PseudoOverridesInSpecializations@E at anEnum 
# | check:175'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/181967


More information about the cfe-commits mailing list