[libcxx-commits] [clang] [libcxx] [clang & libcxx] constexpr pointer tagging (DO NOT MERGE) (PR #111861)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Thu Oct 15 23:47:13 PDT 2026


Hana =?utf-8?q?Dusíková?= <hanicka at hanicka.net>,
Hana =?utf-8?q?Dusíková?= <hanicka at hanicka.net>,
Hana =?utf-8?q?Dusíková?= <hanicka at hanicka.net>,
Hana =?utf-8?q?Dusíková?= <hanicka at hanicka.net>,
Hana =?utf-8?q?Dusíková?= <hanicka at hanicka.net>,
Hana =?utf-8?q?Dusíková?= <hanicka at hanicka.net>,
Hana =?utf-8?q?Dusíková?= <hanicka at hanicka.net>,
Hana =?utf-8?q?Dusíková?= <hanicka at hanicka.net>,
Hana =?utf-8?q?Dusíková?= <hanicka at hanicka.net>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/111861 at github.com>


================

----------------
frederick-vs-ja wrote:

```suggestion
#  include <__assert>
#  include <__bit/bit_width.h>
#  include <__bit/countr.h>
#  include <__compare/ordering.h>
#  include <__config>
#  include <__tuple/tuple_element.h>
#  include <__tuple/tuple_size.h>
#  include <__type_traits/conditional.h>
#  include <__type_traits/is_enum.h>
#  include <__type_traits/is_integral.h>
#  include <__type_traits/is_object.h>
#  include <__type_traits/make_unsigned.h>
#  include <__type_traits/remove_cvref.h>
#  include <__type_traits/underlying_type.h>
#  include <__utility/swap.h>
#  include <climits>

#if _LIBCPP_STD_VER >= 29

_LIBCPP_BEGIN_NAMESPACE_STD
```

It seems that we should unconditionally include these internal headers. Also I think we should include `<__compare/ordering.h>` only.

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


More information about the libcxx-commits mailing list