[clang] [clang] Implement `__builtin_is_implicit_lifetime()` (PR #101807)

via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 11 11:51:08 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 293df8afae3ec1f99e44d6bc015e4edf2c165c8d 49de16a0126a3fe3284f017ee4a4969d41bb4094 --extensions cpp -- clang/lib/Sema/SemaExprCXX.cpp clang/test/SemaCXX/type-traits.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp
index 5fb735600f..17f21f1e65 100644
--- a/clang/lib/Sema/SemaExprCXX.cpp
+++ b/clang/lib/Sema/SemaExprCXX.cpp
@@ -5641,7 +5641,7 @@ static bool EvaluateUnaryTypeTrait(Sema &Self, TypeTrait UTT,
   case UTT_IsImplicitLifetime: {
     DiagnoseVLAInCXXTypeTrait(Self, TInfo,
                               tok::kw___builtin_is_implicit_lifetime);
-    
+
     // [basic.types.general] p9
     // Scalar types, implicit-lifetime class types ([class.prop]),
     // array types, and cv-qualified versions of these types
@@ -5654,7 +5654,7 @@ static bool EvaluateUnaryTypeTrait(Sema &Self, TypeTrait UTT,
     const CXXRecordDecl *RD = UnqualT->getAsCXXRecordDecl();
     if (!RD)
       return false;
-    
+
     // [class.prop] p9
     // A class S is an implicit-lifetime class if
     //   - it is an aggregate whose destructor is not user-provided or

``````````

</details>


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


More information about the cfe-commits mailing list