[clang-tools-extra] Add modernize-use-span linter check (PR #140001)

2025-05-20 Thread JJ Marr via cfe-commits
https://github.com/jj-marr closed https://github.com/llvm/llvm-project/pull/140001 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Add modernize-use-span linter check (PR #140001)

2025-05-20 Thread JJ Marr via cfe-commits
jj-marr wrote: Thinking more, this is not a good check at this time. https://github.com/llvm/llvm-project/pull/140001 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Add modernize-use-span linter check (PR #140001)

2025-05-19 Thread JJ Marr via cfe-commits
jj-marr wrote: `std::span` has a capability gap with a const reference to a `std::vector` until C++26 as `std::span` cannot be constructed from an initializer list. Should this be a C++26 check? https://github.com/llvm/llvm-project/pull/140001 ___ c