[llvm-branch-commits] [libcxx] [libc++] Adds is_implemented function for new ftm generator. (PR #134538)
Louis Dionne via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Apr 8 09:02:32 PDT 2025
================
@@ -2208,6 +2209,20 @@ def implemented_ftms(self) -> Dict[Ftm, Dict[Std, Optional[Value]]]:
return get_ftms(self.__data, self.std_dialects, True)
+ def is_implemented(self, ftm: Ftm, std: Std) -> bool:
+ """Has the FTM `ftm` been implemented in the dialect `std`?"""
+
+ # When a paper for C++20 has not been implemented in libc++, then there will be no
+ # FTM entry in implemented_ftms for C++23 and later.
+ #
+ # Typically standard_ftms is not used with invalid values in the code, but
+ # guard just in case.
----------------
ldionne wrote:
```suggestion
# When a paper for C++20 has not been implemented in libc++, then there will be no
# FTM entry in implemented_ftms for C++23 and later. Similarly, a paper like <format>
# has no entry in standard_ftms for e.g. C++11.
```
https://github.com/llvm/llvm-project/pull/134538
More information about the llvm-branch-commits
mailing list