[clang-tools-extra] [clang-tidy] Fix false negative `modernize-use-ranges` when using getter function (PR #127377)

Congcong Cai via cfe-commits cfe-commits at lists.llvm.org
Sun May 25 19:11:00 PDT 2025


HerrCai0907 wrote:

Maybe it is more straightforward to detect function which return ref of member variable like `const std::vector<int>& get() const { return v; }` and bypass the SideEffect check.

https://github.com/llvm/llvm-project/pull/127377


More information about the cfe-commits mailing list