[clang] [clang] Trigger checkLifetimeEnd callback from CFGLifetimeEnds element (PR #201123)
Arseniy Zaostrovnykh via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 3 00:46:04 PDT 2026
================
@@ -720,6 +720,9 @@ PathDiagnosticLocation::create(const ProgramPoint& P,
} else if (std::optional<FunctionExitPoint> FE =
P.getAs<FunctionExitPoint>()) {
return PathDiagnosticLocation(FE->getStmt(), SMng, FE->getStackFrame());
+ } else if (std::optional<LifetimeEnd> LE = P.getAs<LifetimeEnd>()) {
+ return PathDiagnosticLocation::createEnd(LE->getTriggerStmt(), SMng,
+ LE->getStackFrame());
----------------
necto wrote:
730c3693b693 az/lifetime-end Handle LifetimeEnd in getStmtForDiagnostics
https://github.com/llvm/llvm-project/pull/201123
More information about the cfe-commits
mailing list