================ @@ -81,10 +81,12 @@ Exception: accessor methods The check assumes *accessor* methods of a class are stable, with a heuristic to determine which methods are accessors. Specifically, parameter-free ``const`` -methods are treated as accessors. Note that this is not guaranteed to be safe --- but, it is widely used (safely) in practice, and so we have chosen to treat -it as generally safe. Calls to non ``const`` methods are assumed to modify -the state of the object and affect the stability of earlier accessor calls. +methods and smart pointer-like APIs (non ``const`` overloads of ``*`` when +there is a parallel ``const`` overload) are treated as accessors. Note that +this is not guaranteed to be safe -- but, it is widely used (safely) in +practice, and so we have chosen to treat it as generally safe. Calls to non ---------------- PiotrZSL wrote:
would be good to remove that " and so we have chosen" when you changing this anyway. Simply to write documentation in a 3th party mode. https://github.com/llvm/llvm-project/pull/122290 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits