[clang] [LifetimeSafety] Add `LifetimeSafetyDanglingGlobalMoved` to strict diagnostic group (PR #204891)
Utkarsh Saxena via cfe-commits
cfe-commits at lists.llvm.org
Sun Jun 21 13:21:15 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
----------------
usx95 wrote:
Capitalise and leave a space after `// When`.
https://github.com/llvm/llvm-project/pull/204891
More information about the cfe-commits
mailing list