[clang] [clang] Introduce [[clang::lifetime_capture_by(X)]] (PR #111499)
Boaz Brickner via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 17 01:28:29 PDT 2024
================
@@ -18,29 +18,42 @@
namespace clang::sema {
-/// Describes an entity that is being assigned.
-struct AssignedEntity {
- // The left-hand side expression of the assignment.
- Expr *LHS = nullptr;
+struct CapturingEntity {
----------------
bricknerb wrote:
I think that using CapturingEntity for both use cases, with one of them keeping a field null makes it much harder to follow.
Is it possible to use a more specific type?
https://github.com/llvm/llvm-project/pull/111499
More information about the cfe-commits
mailing list