m4tx added a comment. After thinking about the possible use cases (and the difficulty of implementing heuristics for them) as well as fiddling with Clang Static Analyzer it seems that this patch can be discarded as the Analyzer already handles `delete this` pretty well. I've posted an update to the Bugzilla ticket.
Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D54262 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits