[llvm-branch-commits] [libcxx] [libc++][modules] Improves std.compat module. (PR #76330)
Chuanqi Xu via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Dec 24 18:21:37 PST 2023
================
@@ -17,38 +17,17 @@ module;
// 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>
-#if !defined(_LIBCPP_HAS_NO_ATOMIC_HEADER)
-# include <atomic>
-#endif
-#if !defined(_LIBCPP_HAS_NO_THREADS)
-# include <barrier>
-#endif
-#include <bit>
-#include <bitset>
#include <cassert>
#include <cctype>
----------------
ChuanqiXu9 wrote:
Let's try to remove the duplicated headers as much as possible. Maybe we can improve it by something like:
```
export module std.compat;
export import std;
export using double_t = std::double_t;
```
https://github.com/llvm/llvm-project/pull/76330
More information about the llvm-branch-commits
mailing list