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

Piotr Zegar via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 21 07:39:56 PDT 2024


================
@@ -298,6 +298,10 @@ Changes in existing checks
   check by resolving fix-it overlaps in template code by disregarding implicit
   instances.
 
+- Improved :doc:`modernize-use-starts-ends-with
+  <clang-tidy/checks/modernize/use-starts-ends-with>` check to also handle
+  cases using `compare()`.
----------------
PiotrZSL wrote:

'to also handle calls to ``compare`` method`, or something like that

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


More information about the cfe-commits mailing list