[llvm-branch-commits] [libcxx] [libc++] Implements the new FTM documentation generator. (PR #139774)

Louis Dionne via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed May 14 08:44:06 PDT 2025


================
@@ -0,0 +1,187 @@
+# ===----------------------------------------------------------------------===##
+#
+# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+# See https://llvm.org/LICENSE.txt for license information.
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+#
+# ===----------------------------------------------------------------------===##
+
+# RUN: %{python} %s %{libcxx-dir}/utils %{libcxx-dir}/test/libcxx/feature_test_macro/test_data.json
+
+import sys
+import unittest
+
+UTILS = sys.argv[1]
+TEST_DATA = sys.argv[2]
+del sys.argv[1:3]
+
+sys.path.append(UTILS)
+from generate_feature_test_macro_components import FeatureTestMacros
+
+
+class Test(unittest.TestCase):
+    def setUp(self):
+        self.ftm = FeatureTestMacros(TEST_DATA, ["charconv"])
+        self.maxDiff = None  # This causes the diff to be printed when the test fails
+
+    def test_implementeation(self):
----------------
ldionne wrote:

```suggestion
    def test_implementation(self):
```

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


More information about the llvm-branch-commits mailing list