[libcxx-commits] [PATCH] D99615: [libc++] Improve generate_feature_test_macro_components.py.
Louis Dionne via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Mar 30 14:50:59 PDT 2021
ldionne accepted this revision as: ldionne.
ldionne added a comment.
I'm fine with this either as-is or with Arthur's suggestions. I'll let you folks go back-and-forth, but feel free to commit this once Arthur is satisfied.
@Quuxplusone When you accept, please accept as libc++ too.
================
Comment at: libcxx/utils/generate_feature_test_macro_components.py:52
+# It shall not depend on a macro defined in
+# `include/__config`.
+# libcxx_guards An optional string field. When this field is provided
----------------
Quuxplusone wrote:
> (A) why not?
> (B) I think you can cut lines 44-50, and just let lines 51-52 do the talking
> (C) I think you need to say explicitly that `test_suite_guards` is used in the generated tests (but not in the libc++ headers); whereas `libcxx_guards` is used in libc++'s `<version>` header (but not in the tests). That's the main point of these fields AIUI.
> (A) why not?
Because the test suite is supposed to work even on non-libc++ standard libraries.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99615/new/
https://reviews.llvm.org/D99615
More information about the libcxx-commits
mailing list