[clang-tools-extra] [clang-tidy][abseil-string-find-startswith] Add string_view to default string-like classes (PR #72283)

Piotr Zegar via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 14 10:05:03 PST 2023


PiotrZSL wrote:

_"I am slowly looking into adding an option to this check to recommend C++20's API starts_with, and move it to modernize.
Possibly would like to use it as a codemod on our code."_

Actually best would be to copy this check to performance-use-starts_with (or modernize) or something like this, and restrict it to C++20, and this check restrict to !C++20., But similar case is with ends_with.

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


More information about the cfe-commits mailing list