[libcxx-commits] [libcxx] [libc++] Adds a new feature-test macro generator class. (PR #90889)
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jun 12 10:26:21 PDT 2024
================
@@ -1857,6 +1858,215 @@ def produce_docs():
f.write(doc_str)
+def get_std_dialects(data):
+ """Impementation for feature_test_macros.get_std_dialects()."""
+ dialects = set()
+ for feature in data:
+ keys = feature["values"].keys()
+ assert len(keys) > 0, "'values' is empty"
+ dialects |= keys
+
+ return sorted(dialects)
----------------
mordante wrote:
>From what I understand this happens implicitly, that's why I left it out. I added it.
https://github.com/llvm/llvm-project/pull/90889
More information about the libcxx-commits
mailing list