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

via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 22 08:08:44 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
----------------
EugeneZelenko wrote:

```suggestion
Checks for common roundabout ways to express ``starts_with`` and ``ends_with`` and
```

Double back-ticks are used for language constructs, single back-ticks - for option names and values.

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


More information about the cfe-commits mailing list