Skip to content

Commit 1549ef2

Browse files
authored
Merge pull request swiftlang#60722 from apple/egorzhdan/libstdcxx-headers
[cxx-interop] Move included stdlib headers from libstdcxx.h to the modulemap
2 parents 046c204 + 74723a9 commit 1549ef2

File tree

2 files changed

+53
-52
lines changed

2 files changed

+53
-52
lines changed

stdlib/public/Cxx/std/libstdcxx.h

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,3 @@
1-
#include "algorithm"
2-
#include "bitset"
3-
#include "complex"
4-
#include "deque"
5-
#include "exception"
6-
#include "fstream"
7-
#include "functional"
8-
#include "iomanip"
9-
#include "ios"
10-
#include "iosfwd"
11-
#include "iostream"
12-
#include "istream"
13-
#include "iterator"
14-
#include "limits"
15-
#include "list"
16-
#include "locale"
17-
#include "map"
18-
#include "memory"
19-
#include "new"
20-
#include "numeric"
21-
#include "ostream"
22-
#include "queue"
23-
#include "set"
24-
#include "sstream"
25-
#include "stack"
26-
#include "stdexcept"
27-
#include "streambuf"
28-
#include "string"
29-
#include "utility"
30-
#include "typeinfo"
31-
#include "valarray"
32-
#include "vector"
33-
#include "array"
34-
#include "atomic"
35-
#include "chrono"
36-
#include "condition_variable"
37-
#include "forward_list"
38-
#include "future"
39-
#include "initializer_list"
40-
#include "mutex"
41-
#include "random"
42-
#include "ratio"
43-
#include "regex"
44-
#include "scoped_allocator"
45-
#include "system_error"
46-
#include "thread"
47-
#include "tuple"
48-
#include "typeindex"
49-
#include "type_traits"
50-
#include "unordered_map"
51-
#include "unordered_set"
52-
531
// libstdc++ 4.8.5 bundled with CentOS 7 does not include corecvt.
542
#if __has_include("codecvt")
553
#include "codecvt"

stdlib/public/Cxx/std/libstdcxx.modulemap

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,59 @@
1818

1919
module std {
2020
header "libstdcxx.h"
21+
22+
header "algorithm"
23+
header "bitset"
24+
header "complex"
25+
header "deque"
26+
header "exception"
27+
header "fstream"
28+
header "functional"
29+
header "iomanip"
30+
header "ios"
31+
header "iosfwd"
32+
header "iostream"
33+
header "istream"
34+
header "iterator"
35+
header "limits"
36+
header "list"
37+
header "locale"
38+
header "map"
39+
header "memory"
40+
header "new"
41+
header "numeric"
42+
header "ostream"
43+
header "queue"
44+
header "set"
45+
header "sstream"
46+
header "stack"
47+
header "stdexcept"
48+
header "streambuf"
49+
header "string"
50+
header "utility"
51+
header "typeinfo"
52+
header "valarray"
53+
header "vector"
54+
header "array"
55+
header "atomic"
56+
header "chrono"
57+
header "condition_variable"
58+
header "forward_list"
59+
header "future"
60+
header "initializer_list"
61+
header "mutex"
62+
header "random"
63+
header "ratio"
64+
header "regex"
65+
header "scoped_allocator"
66+
header "system_error"
67+
header "thread"
68+
header "tuple"
69+
header "typeindex"
70+
header "type_traits"
71+
header "unordered_map"
72+
header "unordered_set"
73+
2174
requires cplusplus
2275
export *
2376

0 commit comments

Comments
 (0)