================
@@ -457,7 +528,7 @@ enables only the high-confidence subset of these checks.
     *   ``-Wlifetime-safety-use-after-scope-moved``: Same as 
``-Wlifetime-safety-use-after-scope`` but for cases where the variable may have 
been moved from before its destruction.
     *   ``-Wlifetime-safety-return-stack-addr-moved``: Same as 
``-Wlifetime-safety-return-stack-addr`` but for cases where the variable may 
have been moved from.
     *   ``-Wlifetime-safety-dangling-field-moved``: Same as 
``-Wlifetime-safety-dangling-field`` but for cases where the variable may have 
been moved from.
-    *   ``-Wlifetime-safety-invalidation``: Warns when a container iterator or 
reference to an element is used after an operation that may invalidate it 
(Experimental).
+    *   ``-Wlifetime-safety-invalidation``: Warns when a pointer, reference, 
iterator or view is used after an operation that may invalidate it, such as 
container mutation, ``std::unique_ptr::reset``, explicit destruction or 
``std::destroy_at`` (Experimental).
----------------
usx95 wrote:

nit: container mutation or explicit destruction (e.g., 
`std::unique_ptr::reset`, `std::destroy_at`)

https://github.com/llvm/llvm-project/pull/196790
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to