Issue 87972
Summary [clang-tidy] *-avoid-c-arrays on aligned `std::byte` array
Labels clang-tidy
Assignees
Reporter schaumb
    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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to