<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/87972>87972</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-tidy] *-avoid-c-arrays on aligned `std::byte` array
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-tidy
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
schaumb
</td>
</tr>
</table>
<pre>
The C++23 standard is deprecating the `std::aligned_storage` functionality. The current replacement suggestion is to replace the member to `alignas(T) std::byte t_buff[sizeof(T)];`, see more info at [P1413R3](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p1413r3.pdf).
There should be no clang-tidy warning when the c-array member type is `std::byte`, and the alignment is explicitly set.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxskk-PmzAQxT_NcLGCnDF_woFDslHOVbX3lbEH8MrYyDabpp--Mk1399ALGPPmPc1vRsZoJkfUQ32B-lrILc0-9FHNcluGYvD60b_OxF4AL4AXFCwm6bQMmpnINK2BlEzGTSzNxKDhMWkQZxBnabOxfovJBzkRNJyNm1PJeCetSY-SZV-1hUAusUCrlYqWfI7bNFHMwpyR_L-fe8RCy0Ah30LD9wwZAU-vgB37zB4eiVh6G7ZxhPoSzW_y41ME9RXEBRoO-MIiEVt8IGbc6JlMDOrLj2N1FD9F1uFpTmnNlngDvN3v99Kv5A4x6dKHCfD2ntQR8BYVYhZMmL-0VxHwtsqVQj4g36_XbBxEueoRsCuBX4Gf_z5fZwrE4uw3q9lAzHmmrHTTIRn9YHcZXCZ8n8ntDNRBhiAfnyweK2VS3-lnAs8mpdN71Q5rB2wio1-rNcok-2CRUlnoXuhOdLKg_tgesW4qUWEx981Qd3LkvEVqx7FqOW-JnwbUjZCdbqgwPXKseMVP_HTsOJbtUWkiLYSoahKEUHFapLGltR9LxlaYGDfqT23XYmHlQDbu24f41TMg5m0MfS46DNsUoeLWxBS_bJJJdt_bb2X1lQGeD_LDG314YorMO_bcxv8xYruq2ILt87jj57wnk-ZtKJVfAG859vk6rMG_k0qAt72VPOO9mz8BAAD__0CBDgw">