================
@@ -449,6 +519,7 @@ enables only the high-confidence subset of these checks.
* ``-Wlifetime-safety-permissive``: Enables high-confidence checks for
dangling pointers. **Recommended for initial adoption.**
* ``-Wlifetime-safety-use-after-scope``: Warns when a pointer to a stack
variable is used after the variable's lifetime has ended.
+ * ``-Wlifetime-safety-use-after-free``: Warns when a pointer to a heap
allocation or freed parameter is used after ``delete`` or ``delete[]``.
----------------
usx95 wrote:
nit: Warns when a pointer is used after the underlying storage it points to has
been freed.
Let's remove mentioning heap allocation or details about destruction
e.g.`delete`
https://github.com/llvm/llvm-project/pull/196790
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits