<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/57094>57094</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang] Define the `__cpp_consteval` macro now that support is complete
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang:frontend
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
BertalanD
</td>
</tr>
</table>
<pre>
Commit 3d2629dd3aab17098813c68b5b76bb864bc5e285 marked `consteval` support as completed for the Clang 15 release. However, the `__cpp_consteval` feature test macro is still not defined. If the feature is indeed production-ready, it would be nice to define this macro, both on `main` and the release branch.
https://github.com/llvm/llvm-project/blob/0b12f770241134865be39d73413466da8430f126/clang/lib/Frontend/InitPreprocessor.cpp#L679
cc @cor3ntin, @ChuanqiXu9
See also #53906
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVUrtu3DAQ_BqpISzwIVFSoeJ8hhEDKQKkSWfwsTox4ZEXkrLhv89K50dcpAggiFxwODszXB3ty3SM57MrRFgu-WitUEqzno7DwISRg-50L7UeZKtNB3zoyFmlX2BJJamJIRd4Uh73JK-XS0yFqExMPF88FATNMZGyADl6FU6EdSSBB5WhIV_iMzxBqvhxByDD46O5XB4_cc6gypqAFMgF-5oUicskF-c9CbEQC7MLYBvyMO8sb3gEuWABBVxStKspLoabBMq-bP3Q7HNcvSUaSHAG6eMrE5Lg1b3RBtSxLCSGTdxZubApUsHunV59EJ1UMEtT0buKHq7_pZRLrsSh4vf4nVxZVt1gJFh4__S23KCyn2AKltpHjQvVjM99T3nLmGgH2WkQo-1Fi5WUVg2toDPjEqFmi3MjctvF-xRDgWBx-xBc-ZYAuQ3kHFODkVZcfJX9-LdEY0jV4vMlEQr6QqtYHpdVhd_ux_oJ-h2AKJ8jQZpOjFTWMDEpKd90ydpOwo5iVHVxxcNUdbdXbd0duXuL9F-ve33QEJ8Ro8r7ALmPAarX5Kf_ztPlvELGTYdj3NbLNLDWdr3s-24YuZxpa5jRaug72iolmay90uDzpr7i_GpAHOb3WDnaqd3EKed0YIxJOnRdMw7SSKXHkXM1S0YxQsAx8c0mp4npVKdpV6bXU8ZD73LJH4cqZ3cKsGe28au1LDFNt5CKQgXYcLMx7R7-AB-LKmg">