[clang-tools-extra] [clang-tidy] Add readability-use-span-first-last check (PR #118074)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 29 09:06:25 PST 2024
pkasting wrote:
FWIW I agree that `last(size() - n)` is worse than `subspan(n)`, and that the reverse transform (`subspan(size() - n)` -> `last(n)`) is better.
https://github.com/llvm/llvm-project/pull/118074
More information about the cfe-commits
mailing list