Skip to content

Commit ebd7cc2

Browse files
committed
Implementation: fixed module and forward declarations
1 parent c905111 commit ebd7cc2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

libcxx/include/libcxx.imp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@
434434
{ include: [ "<__fwd/ostream.h>", "private", "<iosfwd>", "public" ] },
435435
{ include: [ "<__fwd/pair.h>", "private", "<utility>", "public" ] },
436436
{ include: [ "<__fwd/span.h>", "private", "<span>", "public" ] },
437-
{ include: [ "<__fwd/spanstream.h>", "private", "<spanstream>", "public" ] },
437+
{ include: [ "<__fwd/spanstream.h>", "private", "<iosfwd>", "public" ] },
438438
{ include: [ "<__fwd/sstream.h>", "private", "<iosfwd>", "public" ] },
439439
{ include: [ "<__fwd/streambuf.h>", "private", "<iosfwd>", "public" ] },
440440
{ include: [ "<__fwd/string.h>", "private", "<string>", "public" ] },

libcxx/modules/std/spanstream.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//===----------------------------------------------------------------------===//
99

1010
export namespace std {
11-
#if 0
11+
#if _LIBCPP_STD_VER >= 23
1212
using std::basic_spanbuf;
1313

1414
using std::swap;
@@ -38,5 +38,5 @@ export namespace std {
3838
# ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
3939
using std::wspanstream;
4040
# endif
41-
#endif
41+
#endif // _LIBCPP_STD_VER >= 23
4242
} // namespace std

libcxx/utils/generate_iwyu_mapping.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def IWYU_mapping(header: str) -> typing.Optional[typing.List[str]]:
4040
return ["utility"]
4141
elif header == "__fwd/subrange.h":
4242
return ["ranges"]
43-
elif re.match("__fwd/(fstream|ios|istream|ostream|sstream|streambuf)[.]h", header):
43+
elif re.match("__fwd/(fstream|ios|istream|ostream|spanstream|sstream|streambuf)[.]h", header):
4444
return ["iosfwd"]
4545
# Handle remaining forward declaration headers
4646
elif re.match("__fwd/(.+)[.]h", header):

0 commit comments

Comments
 (0)