[all-commits] [llvm/llvm-project] b48743: [clang-tidy] `use-ranges`: preserve iterator resul...

Daniil Dudkin via All-commits all-commits at lists.llvm.org
Sun May 31 04:07:56 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b48743be091be62232e3d51b7481604d224b992a
      https://github.com/llvm/llvm-project/commit/b48743be091be62232e3d51b7481604d224b992a
  Author: Daniil Dudkin <unterumarmung at yandex.ru>
  Date:   2026-05-31 (Sun, 31 May 2026)

  Changed paths:
    M clang-tools-extra/clang-tidy/modernize/UseRangesCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/test/clang-tidy/checkers/modernize/Inputs/use-ranges/fake_std.h
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-ranges.cpp

  Log Message:
  -----------
  [clang-tidy] `use-ranges`: preserve iterator results with `.begin()` (#196036)

Preserve used iterator results for `remove`, `partition`,
`stable_partition`, and `rotate`-style replacements by appending
`.begin()` where the ranges algorithm returns a subrange.

Fix #124794

Assisted by Codex.



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