[clang] [clang]: support std::meta::info for primitive types (PR #190356)

via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 9 16:02:32 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 53537 tests passed
* 1084 tests skipped
* 1 test failed

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

### Clang
<details>
<summary>Clang.Sema/reflection-meta-info.fail.cpp</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc C:\_work\llvm-project\llvm-project\clang\test\Sema\reflection-meta-info.fail.cpp -std=c++26 -freflection -fsyntax-only -verify
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc 'C:\_work\llvm-project\llvm-project\clang\test\Sema\reflection-meta-info.fail.cpp' -std=c++26 -freflection -fsyntax-only -verify
# .---command stderr------------
# | error: 'expected-error' diagnostics expected but not seen: 
# |   File C:\_work\llvm-project\llvm-project\clang\test\Sema\reflection-meta-info.fail.cpp Line 9: no matching conversion for C-style cast from 'meta::info' to 'X'
# |   File C:\_work\llvm-project\llvm-project\clang\test\Sema\reflection-meta-info.fail.cpp Line 14: cannot increment value of type 'meta::info'
# |   File C:\_work\llvm-project\llvm-project\clang\test\Sema\reflection-meta-info.fail.cpp Line 15: cannot increment value of type 'meta::info'
# |   File C:\_work\llvm-project\llvm-project\clang\test\Sema\reflection-meta-info.fail.cpp Line 16: cannot increment value of type 'meta::info'
# |   File C:\_work\llvm-project\llvm-project\clang\test\Sema\reflection-meta-info.fail.cpp Line 18: cannot decrement value of type 'meta::info'
# |   File C:\_work\llvm-project\llvm-project\clang\test\Sema\reflection-meta-info.fail.cpp Line 19: cannot decrement value of type 'meta::info'
# |   File C:\_work\llvm-project\llvm-project\clang\test\Sema\reflection-meta-info.fail.cpp Line 20: cannot decrement value of type 'meta::info'
# | error: 'expected-error' diagnostics seen but not expected: 
# |   File C:\_work\llvm-project\llvm-project\clang\test\Sema\reflection-meta-info.fail.cpp Line 9: no matching conversion for C-style cast from 'std::meta::info' to 'X'
# |   File C:\_work\llvm-project\llvm-project\clang\test\Sema\reflection-meta-info.fail.cpp Line 14: cannot increment value of type 'std::meta::info'
# |   File C:\_work\llvm-project\llvm-project\clang\test\Sema\reflection-meta-info.fail.cpp Line 15: cannot increment value of type 'std::meta::info'
# |   File C:\_work\llvm-project\llvm-project\clang\test\Sema\reflection-meta-info.fail.cpp Line 16: cannot increment value of type 'std::meta::info'
# |   File C:\_work\llvm-project\llvm-project\clang\test\Sema\reflection-meta-info.fail.cpp Line 18: cannot decrement value of type 'std::meta::info'
# |   File C:\_work\llvm-project\llvm-project\clang\test\Sema\reflection-meta-info.fail.cpp Line 19: cannot decrement value of type 'std::meta::info'
# |   File C:\_work\llvm-project\llvm-project\clang\test\Sema\reflection-meta-info.fail.cpp Line 20: cannot decrement value of type 'std::meta::info'
# | error: 'expected-note' diagnostics expected but not seen: 
# |   File C:\_work\llvm-project\llvm-project\clang\test\Sema\reflection-meta-info.fail.cpp Line 5: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'meta::info' to 'const X' for 1st argument
# |   File C:\_work\llvm-project\llvm-project\clang\test\Sema\reflection-meta-info.fail.cpp Line 5: candidate constructor (the implicit move constructor) not viable: no known conversion from 'meta::info' to 'X' for 1st argument
# | error: 'expected-note' diagnostics seen but not expected: 
# |   File C:\_work\llvm-project\llvm-project\clang\test\Sema\reflection-meta-info.fail.cpp Line 5: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'std::meta::info' to 'const X' for 1st argument
# |   File C:\_work\llvm-project\llvm-project\clang\test\Sema\reflection-meta-info.fail.cpp Line 5: candidate constructor (the implicit move constructor) not viable: no known conversion from 'std::meta::info' to 'X' for 1st argument
# | 18 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/190356


More information about the cfe-commits mailing list