[clang] [LifetimeSafety] Add `LifetimeSafetyDanglingGlobalMoved` to strict diagnostic group (PR #204891)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 22 02:54:26 PDT 2026
================
@@ -117,3 +121,8 @@ void ok_global_storage() {
++p;
global = (p -= 1); // no-warning
}
+//when a local string is stored in a global view and then moved, the analyzer warns it "may" dangle since the storage may have been moved
----------------
sipher-01 wrote:
I have made changes as required.
https://github.com/llvm/llvm-project/pull/204891
More information about the cfe-commits
mailing list