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

Piotr Zegar via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 10 23:14:08 PDT 2025


https://github.com/PiotrZSL approved this pull request.

LGTM.
PS: won't same issue exist in free standing functions ?

Personally for me all 3 cases should be convertible to ranges.
And probably should be some check for last one to point out dangling iterator.
But that could be in scope for other change.

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


More information about the cfe-commits mailing list