Skip to content

Commit 3dcc3b7

Browse files
committed
underscore
1 parent 3971b55 commit 3dcc3b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libcxx/utils/libcxx/header_information.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def is_modulemap_header(header):
202202
for p in include.glob("experimental/[a-z]*")
203203
if is_header(p)
204204
)
205-
public_headers = toplevel_headers + experimental_headers
205+
public_headers = list(filter(lambda x: not x.startswith("__"), toplevel_headers + experimental_headers))
206206

207207
# The headers used in the std and std.compat modules.
208208
#
@@ -211,6 +211,7 @@ def is_modulemap_header(header):
211211
header
212212
for header in toplevel_headers
213213
if not header.endswith(".h")
214+
and not header.startswith("__")
214215
# These headers have been removed in C++20 so are never part of a module.
215216
and not header in ["ccomplex", "ciso646", "cstdbool", "ctgmath"]
216217
]

0 commit comments

Comments
 (0)