[clang-tools-extra] [clang-tidy][readability-identifier-length] Add a line count threshold (PR #185319)
Alex Dutka via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 21 05:58:31 PDT 2026
dutkalex wrote:
Yes, strange indeed. If this is not a missing include, the fact that it fails only for one build seems to indicate incomplete support of c++17 of the toolchain used. After a quick search across the codebase, it seems like `std::transform_reduce` is not used elsewhere outside of libcxx.
IIRC `std::reduce` is also from c++17 and thus would likely also be also a problem. A possible solution could be to use `std::inner_product` instead (it's not very intuitive for the reader, but it ultimately does the same thing as `std::transform_reduce` and it is from c++11).
I'll have a look at the `llvm::` algorithms, in case there is a better solution...
https://github.com/llvm/llvm-project/pull/185319
More information about the cfe-commits
mailing list