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

Nicolas van Kempen via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 5 20:42:42 PST 2025


================
@@ -128,7 +128,12 @@ Changes in existing checks
   <clang-tidy/checks/misc/redundant-expression>` check by providing additional
   examples and fixing some macro related false positives.
 
-- Improved :doc:`performance/unnecessary-value-param
+- Improved :doc:`modernize-use-starts-ends-with
+  <clang-tidy/checks/modernize/use-starts-ends-with>` check by adding more
+  matched scenarios of ``find`` and ``rfind`` methods and fixing false
+  positives when those methods were called with 3 arguments.
+
+- Improved :doc:`performance-unnecessary-value-param
----------------
nicovank wrote:

While you're at it, place below `performance-move-const-arg` for ordering.

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


More information about the cfe-commits mailing list