[clang-tools-extra] [clang-tidy] Add detection of decltype(nullptr) => std::nullptr_t to modernize-use-nullptr (PR #224591)

via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 18 12:07:12 PDT 2026


================
@@ -229,6 +224,10 @@ infrastructure are described first, followed by tool-specific sections.
   <clang-tidy/checks/modernize/use-noexcept>` when analyzing malformed template
   code with an unparsed exception specification.
 
+- Extend {doc}`modernize-use-nullptr
+  <clang-tidy/checks/modernize/use-nullptr>` to turn ``decltype(nullptr)`` into
+  ``std::nullptr_t`` from ``<cstdef>``.
----------------
serge-sans-paille wrote:

ack

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


More information about the cfe-commits mailing list