[clang] [LifetimeSafety] Detect iterator invalidation through container aliases (PR #195231)
Zeyi Xu via cfe-commits
cfe-commits at lists.llvm.org
Fri May 1 00:53:59 PDT 2026
================
@@ -289,15 +328,15 @@ void SelfInvalidatingMap() {
// insertion and following is unsafe for this container.
mp[1] = "42";
mp[2] // expected-note {{invalidated here}}
- =
----------------
zeyi2 wrote:
Small drive-by trailing whitespaces cleanup here.
https://github.com/llvm/llvm-project/pull/195231
More information about the cfe-commits
mailing list