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

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 18 03:24:12 PDT 2026


================
@@ -292,3 +292,17 @@ template<typename T>
 T *f2(T *a = NULL) {
   return a ? a : NULL;
 }
+
+void foo(decltype(nullptr));
----------------
vbvictor wrote:

Can we write another test-file where will check inclusion of `<cstddef>`

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


More information about the cfe-commits mailing list