[libcxx-commits] [libcxx] [libc++] Implements the new FTM header test generator. (PR #134542)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed May 14 08:34:07 PDT 2025


================
@@ -2161,12 +2218,21 @@ class FeatureTestMacros:
 
     # The JSON data structure.
     __data = None
-
-    def __init__(self, filename: str):
+    # The headers not available in libc++.
+    #
+    # This could be detected based on FTM status, however that gives some odd
+    # results. For example, at the moment __cpp_lib_constexpr_cmath is not
+    # implemented, which flags `<cstdlib>` as not implemented. The availablilty
+    # of headers in maintained for the C++ Standard Libarary modules.
+    __unavailable_headers = None
+
+    def __init__(self, filename: str, not_implemented_headers: List[str]):
----------------
ldionne wrote:

```suggestion
    def __init__(self, filename: str, unimplemented_headers: List[str]):
```

https://github.com/llvm/llvm-project/pull/134542


More information about the libcxx-commits mailing list