[clang-tools-extra] [llvm] [llvm][ADT] Add wrappers to `std::includes` (PR #143297)
Longsheng Mou via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 9 07:45:27 PDT 2025
================
@@ -1308,7 +1308,7 @@ getMappedRanges(ArrayRef<Range> Indexed, ArrayRef<SymbolRange> Lexed) {
return std::nullopt;
}
// Fast check for the special subset case.
- if (std::includes(Indexed.begin(), Indexed.end(), Lexed.begin(), Lexed.end()))
+ if (llvm::includes(Indexed, Lexed))
----------------
CoTinker wrote:
Good idea
https://github.com/llvm/llvm-project/pull/143297
More information about the llvm-commits
mailing list