[clang-tools-extra] [clang-tidy] Add llvm::accumulate to llvm-use-ranges (PR #177655)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 24 00:33:42 PST 2026


================
@@ -55,36 +55,16 @@ utils::UseRangesCheck::ReplacerMap UseRangesCheck::getReplacerMap() const {
       };
 
   // Single range algorithms.
-  AddStdToLLVM(llvm::makeIntrusiveRefCnt<StdToLLVMReplacer>(SingleSig),
-               {"adjacent_find",
-                "all_of",
-                "any_of",
-                "binary_search",
-                "copy",
-                "copy_if",
-                "count",
-                "count_if",
-                "fill",
-                "find",
-                "find_if",
-                "find_if_not",
-                "for_each",
-                "is_sorted",
-                "lower_bound",
-                "max_element",
-                "min_element",
-                "none_of",
-                "partition",
-                "partition_point",
-                "remove_if",
-                "replace",
-                "replace_copy",
-                "replace_copy_if",
-                "stable_sort",
-                "transform",
-                "uninitialized_copy",
-                "unique",
-                "upper_bound"});
+  AddStdToLLVM(
+      llvm::makeIntrusiveRefCnt<StdToLLVMReplacer>(SingleSig),
+      {"accumulate",      "adjacent_find", "all_of",    "any_of",
+       "binary_search",   "copy",          "copy_if",   "count",
----------------
vbvictor wrote:

I think we can put this list into `clang-format ON`, `clang-format OFF` section and keep it  one name per line style.


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


More information about the cfe-commits mailing list