[clang] [Clang] Extend lifetime bound analysis to support assignments (PR #96475)

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 1 01:42:54 PDT 2024


================
@@ -964,17 +966,34 @@ static bool pathOnlyInitializesGslPointer(IndirectLocalPath &Path) {
   return false;
 }
 
-void checkExprLifetime(Sema &SemaRef, const InitializedEntity &Entity,
+void checkExprLifetime(Sema &SemaRef, const CheckingEntity &CEntity,
----------------
hokein wrote:

Thanks for the suggestion. I'm not a fan of `std::variant` either. I've added a new overload for `AssignedEntity`.

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


More information about the cfe-commits mailing list