Skip to content

Commit b2eab34

Browse files
committed
[Clang] Add a release note deprecating __is_nullptr
1 parent 142499d commit b2eab34

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

clang/docs/ReleaseNotes.rst

+5-1
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,10 @@ Non-comprehensive list of changes in this release
447447
type of the pointer was taken into account. This improves
448448
compatibility with GCC's libstdc++.
449449

450+
- The type traits builtin ``__is_nullptr`` is deprecated in CLang 19 and will be
451+
removed in Clang 20. ``__is_same(__remove_cv(T), decltype(nullptr))`` can be
452+
used instead to check whether a type ``T`` is a ``nullptr``.
453+
450454
New Compiler Flags
451455
------------------
452456
- ``-fsanitize=implicit-bitfield-conversion`` checks implicit truncation and
@@ -754,7 +758,7 @@ Improvements to Clang's diagnostics
754758

755759
- Clang now diagnoses dangling assignments for pointer-like objects (annotated with `[[gsl::Pointer]]`) under `-Wdangling-assignment-gsl` (off by default)
756760
Fixes #GH63310.
757-
761+
758762
- Clang now diagnoses uses of alias templates with a deprecated attribute. (Fixes #GH18236).
759763

760764
.. code-block:: c++

0 commit comments

Comments
 (0)