[libcxx-commits] [libcxx] [libc++] Adds a global private constructor tag. (PR #87920)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Apr 9 09:47:18 PDT 2024


================
@@ -0,0 +1,28 @@
+// -*- C++ -*-
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef _LIBCPP__UTILITY_PRIVATE_CONSTRUCTOR_TAG_H
+#define _LIBCPP__UTILITY_PRIVATE_CONSTRUCTOR_TAG_H
+
+#include <__config>
+
+#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
+#  pragma GCC system_header
+#endif
+
+_LIBCPP_BEGIN_NAMESPACE_STD
----------------
ldionne wrote:

We can also fix some uses in `stop_callback.h` and `locale`. You can grep for `__private_tag` to find those two uses.

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


More information about the libcxx-commits mailing list