[clang] [clang] Implement a bitwise_copyable builtin type trait. (PR #86512)

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 16 04:49:51 PDT 2024


================
@@ -526,6 +526,7 @@ TYPE_TRAIT_2(__is_layout_compatible, IsLayoutCompatible, KEYCXX)
 #include "clang/Basic/TransformTypeTraits.def"
 
 // Clang-only C++ Type Traits
+TYPE_TRAIT_1(__is_bitwise_copyable, IsBitwiseCopyable, KEYCXX)
----------------
hokein wrote:

Done, added one, please take a look.

The LanguageExtensions.rst is a huge doc with many sections, I added a new item to the [Builtin Functions](https://clang.llvm.org/docs/LanguageExtensions.html#id33)[ΒΆ](https://clang.llvm.org/docs/LanguageExtensions.html#builtin-functions) bucket. Happy to re-arrange it to a more suitable place.

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


More information about the cfe-commits mailing list