[clang] [LifetimeSafety] Add suggestion and inference for implicit this (PR #176703)

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 22 09:34:53 PST 2026


================
@@ -2927,6 +2929,44 @@ class LifetimeSafetyReporterImpl : public LifetimeSafetyReporter {
         << EscapeExpr->getSourceRange();
----------------
usx95 wrote:

<!--__GRAPHITE_HTML_TAG_START__--><p class='graphite__hidden'><i>[Re: line +2915]</i></p><!--__GRAPHITE_HTML_TAG_END__-->
nit: Rename these to `warn_lifetime_safety_intra_tu_param_suggestion`.

Similarly rename `warn_lifetime_safety_this_intra_tu_suggestion` to `warn_lifetime_safety_intra_tu_this_suggestion`
<!--__GRAPHITE_HTML_TAG_START__--><p class='graphite__hidden'>See this comment inline on <a href="https://app.graphite.com/github/pr/llvm/llvm-project/176703?utm_source=unchanged-line-comment">Graphite</a>.</p><!--__GRAPHITE_HTML_TAG_END__-->

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


More information about the cfe-commits mailing list