[clang] [C11] Implement WG14 N1285 (temporary lifetimes) (PR #133472)

via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 31 04:45:36 PDT 2025


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 HEAD~1 HEAD --extensions c,h,cpp -- clang/test/C/C11/n1285_1.c clang/lib/CodeGen/CGDecl.cpp clang/lib/CodeGen/CGExpr.cpp clang/lib/CodeGen/CodeGenFunction.h clang/lib/Sema/Sema.cpp clang/lib/Sema/SemaInit.cpp clang/test/C/C11/n1285.c clang/test/CodeGen/xcore-abi.c
``````````

</details>

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

``````````diff
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp
index 3ba0b9705..853f448c3 100644
--- a/clang/lib/CodeGen/CGDecl.cpp
+++ b/clang/lib/CodeGen/CGDecl.cpp
@@ -2269,7 +2269,7 @@ void CodeGenFunction::pushDestroy(QualType::DestructionKind dtorKind,
               cleanupKind & EHCleanup);
 }
 
- void CodeGenFunction::pushLifetimeExtendedDestroy(
+void CodeGenFunction::pushLifetimeExtendedDestroy(
     QualType::DestructionKind dtorKind, Address addr, QualType type) {
   CleanupKind cleanupKind = getCleanupKind(dtorKind);
   pushLifetimeExtendedDestroy(cleanupKind, addr, type, getDestroyer(dtorKind),

``````````

</details>


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


More information about the cfe-commits mailing list