llvm-project
20bce6de - [clang-tidy] Teach `performance-faster-string-find` about `starts_with`, `ends_with`, and `contains` (#182633)

Commit
8 days ago
[clang-tidy] Teach `performance-faster-string-find` about `starts_with`, `ends_with`, and `contains` (#182633) These aren't "find" functions per se, so they don't totally match the check name, but the same optimization is applicable to them (for example, see https://en.cppreference.com/w/cpp/string/basic_string_view/starts_with.html). This optimization could be expanded to `operator+=` as well, but that's a bit more involved, so I'm not doing it in this PR.
Author
Parents
Loading