[all-commits] [llvm/llvm-project] 2a3e78: [clang-tidy] Fix invalid fixit from modernize-use-...

Andrewyuan34 via All-commits all-commits at lists.llvm.org
Sun Mar 9 05:10:21 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2a3e782f4053d8ecb98dc110ebb6bacdb7bb17c7
      https://github.com/llvm/llvm-project/commit/2a3e782f4053d8ecb98dc110ebb6bacdb7bb17c7
  Author: Andrewyuan34 <yiboy at uvic.ca>
  Date:   2025-03-09 (Sun, 09 Mar 2025)

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

  Log Message:
  -----------
  [clang-tidy] Fix invalid fixit from modernize-use-ranges for nullptr used with std::unique_ptr (#127162)

This PR fixes issue #124815 by correcting the handling of `nullptr` with
`std::unique_ptr` in the `modernize-use-ranges` check.

Updated the logic to suppress warnings for `nullptr` in `std::find`.



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