[clang-tools-extra] [clang-tidy] 'modernize-use-starts-ends-with': fixed false positives on `find` and `rfind` (PR #129564)

via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 5 13:23:01 PST 2025


================
@@ -128,6 +128,10 @@ Changes in existing checks
   <clang-tidy/checks/misc/redundant-expression>` check by providing additional
   examples and fixing some macro related false positives.
 
+- Improved :doc:`modernize-use-starts-ends-with
+  <clang-tidy/checks/modernize/use-starts-ends-with>` check by fixing false
+  positives on methods ``find`` and ``rfind`` called with three arguments.
+
 - Improved :doc:`performance/unnecessary-value-param
----------------
EugeneZelenko wrote:

```suggestion
- Improved :doc:`performance-unnecessary-value-param
```

Please also fix this.

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


More information about the cfe-commits mailing list