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

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 14 02:07:52 PST 2025


================
@@ -109,6 +109,9 @@ Changes in existing checks
 - Improved :doc:`misc-redundant-expression
   <clang-tidy/checks/misc/redundant-expression>` check by providing additional
   examples and fixing some macro related false positives.
+  
+- Fixed a false positive in :doc:`modernize-use-ranges
+  <clang-tidy/checks/modernize/use-ranges>`update the logic to suppress warnings for `nullptr` in `std::find`.
----------------
vbvictor wrote:

```suggestion
  <clang-tidy/checks/modernize/use-ranges>` check by updating suppress warnings logic for ``nullptr`` in ``std::find``.
```

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


More information about the cfe-commits mailing list