File tree 1 file changed +9
-0
lines changed 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,10 @@ def has_cxx20_module(self) -> bool:
95
95
removed_in_20 = ["ccomplex" , "ciso646" , "cstdbool" , "ctgmath" ]
96
96
return self .is_public () and not self .is_experimental () and not self .is_C_compatibility () and not self ._name in removed_in_20
97
97
98
+ def is_cxx03_frozen_header (self ) -> bool :
99
+ """Returns whether the header is a frozen C++03 support header."""
100
+ return self ._name .startswith ("__cxx03/" )
101
+
98
102
def is_in_modulemap (self ) -> bool :
99
103
"""Returns whether a header should be listed in the modulemap."""
100
104
# TODO: Should `__config_site` be in the modulemap?
@@ -118,6 +122,11 @@ def is_in_modulemap(self) -> bool:
118
122
# burden ourself with maintaining them in any way.
119
123
if self ._name .startswith ("ext/" ):
120
124
return False
125
+
126
+ # TODO: Frozen C++03 headers should probably be in the modulemap as well
127
+ if self .is_cxx03_frozen_header ():
128
+ return False
129
+
121
130
return True
122
131
123
132
def __str__ (self ) -> str :
You can’t perform that action at this time.
0 commit comments