[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:07 PDT 2025
================
@@ -2555,6 +2645,72 @@ def generate_header_test_directory(self, path: os.path) -> None:
f.write(self.generate_header_test_file(header))
+ @functools.cached_property
+ def status_list_table(self) -> str:
+ """Creates the rst status table using a list-table."""
+
+ result = ""
+ for std in self.std_dialects:
+ result += create_table_row(
+ [[f'**{std.replace("c++", "C++")}**', "", "", "", ""]]
+ )
+
+ for feature in self.__data:
+ if std not in feature["values"].keys():
+ continue
+
+ row = list()
+
+ ftm = feature["name"]
+ libcxx_value = (
+ f"{self.standard_ftms[ftm][std]}"
+ if self.is_implemented(ftm, std)
+ else "*unimplemented*"
+ )
+
+ values = feature["values"][std]
+ assert len(values) > 0, f"{feature['name']}[{std}] has no entries"
+ for value in values:
----------------
ldionne wrote:
```suggestion
for value, papers in values.items():
```
Would that work too?
https://github.com/llvm/llvm-project/pull/139774
More information about the llvm-branch-commits
mailing list