diff options
author | Tom Lokovic <tdl@google.com> | 2021-08-10 16:26:02 +0000 |
---|---|---|
committer | Yitzhak Mandelbaum <yitzhakm@google.com> | 2021-08-10 16:39:17 +0000 |
commit | 1fdb3e36ff379e5b3b05a00d49b6081435df727a (patch) | |
tree | 7b0540babc430a44da73373522d3a2298cccc1f6 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 2ced1f338ae05260b01d9293e9dba27b90a2bfed (diff) | |
download | llvm-1fdb3e36ff379e5b3b05a00d49b6081435df727a.zip llvm-1fdb3e36ff379e5b3b05a00d49b6081435df727a.tar.gz llvm-1fdb3e36ff379e5b3b05a00d49b6081435df727a.tar.bz2 |
abseil-string-find-str-contains should not propose an edit for the three-parameter version of find().
std::string, std::string_view, and absl::string_view all have a three-parameter version of find()
which has a "count" (or "n") paremeter limiting the size of the substring to search. We don't want
to propose changing to absl::StrContains in those cases. This change fixes that and adds unit tests
to confirm.
Reviewed By: ymandel
Differential Revision: https://reviews.llvm.org/D107837
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions