[clang-tools-extra] [clang-tidy][modernize-use-starts-ends-with] Add support for compare() (PR #89530)

Nicolas van Kempen via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 22 08:13:56 PDT 2024


================
@@ -3,15 +3,16 @@
 modernize-use-starts-ends-with
 ==============================
 
-Checks whether a ``find`` or ``rfind`` result is compared with 0 and suggests
-replacing with ``starts_with`` when the method exists in the class. Notably,
+Checks for common roundabout ways to express `starts_with` and `ends_with` and
----------------
nicovank wrote:

Missed that one -- thanks.

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


More information about the cfe-commits mailing list