[llvm-branch-commits] [libcxx] [libc++] Adds is_implemented function for new ftm generator. (PR #134538)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Apr 6 06:38:26 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r HEAD~1...HEAD libcxx/test/libcxx/feature_test_macro/is_implemented.sh.py libcxx/test/libcxx/feature_test_macro/implemented_ftms.sh.py libcxx/utils/generate_feature_test_macro_components.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- utils/generate_feature_test_macro_components.py 2025-04-06 13:10:49.000000 +0000
+++ utils/generate_feature_test_macro_components.py 2025-04-06 13:37:58.083082 +0000
@@ -2215,15 +2215,17 @@
# 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.
- if not std in self.implemented_ftms[ftm].keys() or not std in self.standard_ftms[ftm].keys():
+ if (
+ not std in self.implemented_ftms[ftm].keys()
+ or not std in self.standard_ftms[ftm].keys()
+ ):
return False
return self.implemented_ftms[ftm][std] == self.standard_ftms[ftm][std]
-
@functools.cached_property
def ftm_metadata(self) -> Dict[Ftm, Metadata]:
"""Returns the metadata of the FTMs defined in the Standard.
``````````
</details>
https://github.com/llvm/llvm-project/pull/134538
More information about the llvm-branch-commits
mailing list