[libcxx-commits] [libcxx] [libc++] Implements the new version header generator. (PR #97847)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jul 30 09:30:27 PDT 2024


================
@@ -2060,12 +2109,106 @@ def implemented_ftms(self) -> Dict[str, Dict[str, Any]]:
 
         return get_ftms(self.__data, self.std_dialects, True)
 
+    @functools.cached_property
+    def ftm_meta_data(self) -> Dict[str, Dict[str, Any]]:
+        """Returns the meta data of the FTMs defined in the Standard.
+
+        The meta data does not depend on the C++ dialect used.
+        The result is a dict with the following contents:
+        - key: Name of the feature test macro.
+        - value: A dict with the following content:
+          * headers: The list of headers that should provide the FTM
+          * test_suite_guard: The condtion for testing the FTM in the test suite.
+          * test_suite_guard: The condtion for testing the FTM in the version header.
----------------
ldionne wrote:

```suggestion
          * test_suite_guard: The condition for testing the FTM in the test suite.
          * test_suite_guard: The condition for testing the FTM in the version header.
```

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


More information about the libcxx-commits mailing list