[all-commits] [llvm/llvm-project] 2909c4: [clang-tidy] modernize-use-starts-ends-with: fix f...

Baranov Victor via All-commits all-commits at lists.llvm.org
Sat Mar 22 05:08:19 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2909c420f6b1919989819d91d5194d5d50f3910d
      https://github.com/llvm/llvm-project/commit/2909c420f6b1919989819d91d5194d5d50f3910d
  Author: Baranov Victor <bar.victor.2002 at gmail.com>
  Date:   2025-03-22 (Sat, 22 Mar 2025)

  Changed paths:
    M clang-tools-extra/clang-tidy/modernize/UseStartsEndsWithCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/docs/clang-tidy/checks/modernize/use-starts-ends-with.rst
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-starts-ends-with.cpp

  Log Message:
  -----------
  [clang-tidy] modernize-use-starts-ends-with: fix false positives on `find` and `rfind` (#129564)

Also document cases with two or three arguments (matching default arguments)
this check matches.

Closes https://github.com/llvm/llvm-project/issues/129498.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list