[PATCH] D126159: [ADT] Add edit_distance_insensitive to StringRef

Alexander Shaposhnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 5 03:23:09 PDT 2022


alexander-shaposhnikov added inline comments.


================
Comment at: llvm/include/llvm/ADT/edit_distance.h:46
+template <typename T, typename Functor>
+unsigned ComputeMappedEditDistance(ArrayRef<T> FromArray, ArrayRef<T> ToArray,
+                                   Functor Map, bool AllowReplacements = true,
----------------
as a side note, wouldn't it be a bit clearer / more flexible to pass a comparator instead ?



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D126159/new/

https://reviews.llvm.org/D126159



More information about the llvm-commits mailing list