================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits