File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -192,25 +192,27 @@ def is_modulemap_header(header):
192
192
assert libcxx_root .exists ()
193
193
194
194
all_headers = sorted (
195
- p .relative_to (include ).as_posix () for p in include .rglob ("[a -z]*" ) if is_header (p )
195
+ p .relative_to (include ).as_posix () for p in include .rglob ("[_a -z]*" ) if is_header (p )
196
196
)
197
197
toplevel_headers = sorted (
198
- p .relative_to (include ).as_posix () for p in include .glob ("[a -z]*" ) if is_header (p )
198
+ p .relative_to (include ).as_posix () for p in include .glob ("[_a -z]*" ) if is_header (p )
199
199
)
200
200
experimental_headers = sorted (
201
201
p .relative_to (include ).as_posix ()
202
202
for p in include .glob ("experimental/[a-z]*" )
203
203
if is_header (p )
204
204
)
205
- public_headers = toplevel_headers + experimental_headers
205
+ public_headers = list (
206
+ filter (lambda x : not x .startswith ("__" ), toplevel_headers + experimental_headers )
207
+ )
206
208
207
209
# The headers used in the std and std.compat modules.
208
210
#
209
211
# This is the set of all C++23-and-later headers, excluding C compatibility headers.
210
212
module_headers = [
211
213
header
212
214
for header in toplevel_headers
213
- if not header .endswith (".h" )
215
+ if not header .endswith (".h" ) and not header . startswith ( "__" )
214
216
# These headers have been removed in C++20 so are never part of a module.
215
217
and not header in ["ccomplex" , "ciso646" , "cstdbool" , "ctgmath" ]
216
218
]
You can’t perform that action at this time.
0 commit comments