[libcxx-commits] [libcxx] [libc++][modules] Adds std.compat module. (PR #71438)

Chuanqi Xu via libcxx-commits libcxx-commits at lists.llvm.org
Wed Dec 6 22:50:21 PST 2023


================
@@ -0,0 +1,202 @@
+// -*- 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
+//
+//===----------------------------------------------------------------------===//
+
+// WARNING, this entire header is generated by
+// utils/generate_libcxx_cppm_in.py
+// DO NOT MODIFY!
+
+module;
+
+#include <__config>
+
+// The headers of Table 24: C++ library headers [tab:headers.cpp]
+// and the headers of Table 25: C++ headers for C library facilities [tab:headers.cpp.c]
+#include <algorithm>
+#include <any>
+#include <array>
----------------
ChuanqiXu9 wrote:

I feel better to not include C++ headers in std.compat.cppm.  See the following comments for details.

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


More information about the libcxx-commits mailing list