[PATCH] D76496: [clang-tidy] StringFindStartswith should ignore 3-arg find()

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 21 07:29:25 PDT 2020


njames93 added a comment.

I'm not hugely familiar with the abseil library, but from what I can see `absl::StartsWith` takes `absl::string_view` as args. Therefore surely it makes sense to handle the 3rd arg for `str::find` by explicitly constructing the `absl::string_view` from the pointer and size.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D76496





More information about the cfe-commits mailing list