vbvictor wrote: @PiotrZSL, thank you for pointing out better naming pattern for diag-messages, would use it in the future.
1. Created new warning and fix-it messages. 2. Renamed check. 3. As for now, my check can support any type that will have `reset` method, this include `std::optional`. Maybe a more general approach would be to detect overlapping methods with classes that are returned via `operator*` and `operator->`. However, if some method is called on main object and there is no equivalent of `= nullptr` I don't know how user can fix such warning. https://github.com/llvm/llvm-project/pull/121291 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits