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

via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 25 08:01:53 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 5a744776bb6192dae04360609457c9f49dce43a2 481627e3bacf2e9fa5ca71adece32e4ca5fa94ef -- clang/test/SemaCXX/builtin-is-bitwise-copyable.cpp clang/include/clang/AST/Type.h clang/lib/AST/Type.cpp clang/lib/Sema/SemaExprCXX.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/AST/Type.cpp b/clang/lib/AST/Type.cpp
index 0164c72f0d..ba994505d7 100644
--- a/clang/lib/AST/Type.cpp
+++ b/clang/lib/AST/Type.cpp
@@ -2667,7 +2667,7 @@ bool QualType::isTriviallyCopyableType(const ASTContext &Context) const {
                                      /*IsCopyConstructible=*/false);
 }
 
-bool QualType::isBitwiseCopyableType(const ASTContext & Context) const {
+bool QualType::isBitwiseCopyableType(const ASTContext &Context) const {
   QualType CanonicalType = getCanonicalType();
   if (CanonicalType->isIncompleteType() || CanonicalType->isDependentType())
     return false;

``````````

</details>


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


More information about the cfe-commits mailing list