carbon-language / carbon-lang

Carbon Language's main repository: documents, design, implementation, and related tools. (NOTE: Carbon Language is experimental; see README)
http://docs.carbon-lang.dev/
Other
32.38k stars 1.48k forks source link

Use std::ranges::any_of instead of std::any_of #4539

Closed danakj closed 1 week ago

danakj commented 1 week ago

This is suggested by clang-tidy's modernize checks, and is a safer coding practice.

danakj commented 1 week ago

cc @jonmeow

danakj commented 1 week ago

I see that we suppress readability-use-anyofallof in .clang-tidy which is meant to not suggest this particular change, but it's also coming from modernize-use-ranges.