[clang] [LifetimeSafety] Detect iterator invalidation through container aliases (PR #195231)

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Fri May 1 04:47:03 PDT 2026


================
@@ -345,37 +384,41 @@ void Invalidate1Use2IsOk() {
     auto it = s.strings1.begin();
----------------
usx95 wrote:

<!--__GRAPHITE_HTML_TAG_START__--><p class='graphite__hidden'><i>[Re: line +382]</i></p><!--__GRAPHITE_HTML_TAG_END__-->
nit: rename to `Invalidate2Use1IsOk`

Must have been an oversight by me.
<!--__GRAPHITE_HTML_TAG_START__--><p class='graphite__hidden'>See this comment inline on <a href="https://app.graphite.com/github/pr/llvm/llvm-project/195231?utm_source=unchanged-line-comment">Graphite</a>.</p><!--__GRAPHITE_HTML_TAG_END__-->

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


More information about the cfe-commits mailing list