[clang] [Clang] Remove __is_nullptr from the list of type traits (PR #109533)

via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 21 09:16:44 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Nikolas Klauser (philnik777)

<details>
<summary>Changes</summary>

Support for `__is_nullptr` was removed in #<!-- -->99038, but I forgot to remove it from the list of type traits, resulting in Clang crashing when one tries to use it.


---
Full diff: https://github.com/llvm/llvm-project/pull/109533.diff


1 Files Affected:

- (modified) clang/include/clang/Basic/TokenKinds.def (-1) 


``````````diff
diff --git a/clang/include/clang/Basic/TokenKinds.def b/clang/include/clang/Basic/TokenKinds.def
index 00e150dbd7a3a7..c5c3838407cf48 100644
--- a/clang/include/clang/Basic/TokenKinds.def
+++ b/clang/include/clang/Basic/TokenKinds.def
@@ -542,7 +542,6 @@ TYPE_TRAIT_1(__is_trivially_relocatable, IsTriviallyRelocatable, KEYCXX)
 TYPE_TRAIT_1(__is_trivially_equality_comparable, IsTriviallyEqualityComparable, KEYCXX)
 TYPE_TRAIT_1(__is_bounded_array, IsBoundedArray, KEYCXX)
 TYPE_TRAIT_1(__is_unbounded_array, IsUnboundedArray, KEYCXX)
-TYPE_TRAIT_1(__is_nullptr, IsNullPointer, KEYCXX)
 TYPE_TRAIT_1(__is_scoped_enum, IsScopedEnum, KEYCXX)
 TYPE_TRAIT_1(__is_referenceable, IsReferenceable, KEYCXX)
 TYPE_TRAIT_1(__can_pass_in_regs, CanPassInRegs, KEYCXX)

``````````

</details>


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


More information about the cfe-commits mailing list