[clang-tools-extra] [clang-tidy] Add modernize-use-span-param check (PR #182027)

Victor Chernyakin via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 19 11:48:42 PST 2026


https://github.com/localspook commented:

Fixes #156058?

Comments on the first attempt at this check are worth reading too: #140001

Some bikeshedding: maybe call it `modernize-use-std-span`? We should definitely add the `-std` part, that's how we name other similar checks. I'm less certain about removing the `-param` part, but I feel like it doesn't add much. Removing it would leave room to, for example, extend the check to variables in the future.

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


More information about the cfe-commits mailing list