[clang] [Lifetime Safety] Highlight lifetimebound calls in alias chain diagnostics (PR #206337)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Jul 11 09:24:41 PDT 2026
================
@@ -670,14 +670,39 @@ class LifetimeSafetySemaHelperImpl : public LifetimeSafetySemaHelper {
const Expr *LastExpr = OriginExprChain.back();
std::string IssueStr = getDiagSubjectDescription(LastExpr);
+ std::optional<LifetimeBoundParamInfo> HiddenLifetimeBound;
----------------
NeKon69 wrote:
One idea that comes to my mind here is comparing the source ranges of those expressions, if they match, then we can pass on `LifetimeBoundInfo` into `HiddenLifetimeBound`, otherwise not.
https://github.com/llvm/llvm-project/pull/206337
More information about the cfe-commits
mailing list