================ @@ -3351,6 +3351,62 @@ remove the const qualifier from the original declaration or use a mutable copy. alpha.cplusplus ^^^^^^^^^^^^^^^ +.. _alpha-cplusplus-DanglingPtrDeref: + +alpha.cplusplus.DanglingPtrDeref (C++) +"""""""""""""""""""""""""""""""""""""" +Check for dereferences of pointers that refer to an object whose +lifetime has already ended. Such a pointer is dangling. The checker +reports it when it is dereferenced and when it is passed to a function. ---------------- Xazax-hun wrote:
Don't we also report when it is returned from a function? https://github.com/llvm/llvm-project/pull/216688 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
