[clang-tools-extra] [clang-tidy] modernize-use-nullptr matches "NULL" in templates (PR #109169)

via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 19 07:43:14 PDT 2024


================
@@ -183,6 +183,10 @@ Changes in existing checks
   <clang-tidy/checks/readability/redundant-smartptr-get>` check to
   remove `->`, when redundant `get()` is removed.
 
+- Improved :doc:`modernize-use-nullptr
+  <clang-tidy/checks/modernize/use-nullptr>` check to also recognize
+  `NULL`/`__null` (but not `0`) when used with a templated type.
----------------
EugeneZelenko wrote:

```suggestion
  ``NULL``/``__null`` (but not ``0``) when used with a templated type.
```

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


More information about the cfe-commits mailing list