[clang] [Lifetime Safety] Highlight lifetimebound calls in alias chain diagnostics (PR #206337)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Jul 12 11:23:59 PDT 2026
================
@@ -664,20 +664,66 @@ class LifetimeSafetySemaHelperImpl : public LifetimeSafetySemaHelper {
return CurrExpr->getSourceRange() != LastExpr->getSourceRange();
}
+ bool shouldCarryHiddenLifetimeBound(const Expr *HiddenExpr,
----------------
NeKon69 wrote:
Oh, now, seeing `IgnoreImpCasts` on the expressions makes me realize, can't we just compare them directly to see if they match? Something like `return A->IgnoreUnlessSpelledInSource() == B->IgnoreUnlessSpelledInSource();`
https://github.com/llvm/llvm-project/pull/206337
More information about the cfe-commits
mailing list