[clang] [WIP][Clang] Extend lifetime of the temporary in default member init expression (PR #86960)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 28 07:53:09 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 49b520856967c2354339d3c2a05fcf1d2d637f30 107cf4fdda2680a3de4fd0cea6e9fc1eaaf5f8c7 -- clang/lib/Sema/SemaExpr.cpp clang/lib/Sema/SemaInit.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp
index 85baf52e1f..fa44a6fbaa 100644
--- a/clang/lib/Sema/SemaInit.cpp
+++ b/clang/lib/Sema/SemaInit.cpp
@@ -8178,7 +8178,7 @@ void Sema::checkInitializerLifetime(const InitializedEntity &Entity,
case PathLifetimeKind::Extend:
// If in a lifetime-extending context, delay extending action.
- // e.g. Delayed lifetime extending until building for-range-stmt.
+ // e.g. Delayed lifetime extending until building for-range-stmt.
if (isInLifetimeExtendingContext())
return true;
``````````
</details>
https://github.com/llvm/llvm-project/pull/86960
More information about the cfe-commits
mailing list