[libcxx-commits] [PATCH] D94983: [libc++] Make feature-test macros consistent with availability macros

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jan 19 10:24:04 PST 2021


ldionne created this revision.
Herald added subscribers: jfb, jkorous, arichardson.
ldionne requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Before this patch, feature-test macros didn't take special availability
markup into account, which means that feature-test macros can sometimes
appear to "lie". For example, if you compile in C++20 mode and target
macOS 10.13, the __cpp_lib_filesystem feature-test macro will be provided
even though the <filesystem> declarations are marked as unavailable.
This patch fixes that.

rdar://68142369


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94983

Files:
  libcxx/include/__availability
  libcxx/include/version
  libcxx/utils/generate_feature_test_macro_components.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94983.317617.patch
Type: text/x-patch
Size: 12677 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210119/ab402f97/attachment-0001.bin>


More information about the libcxx-commits mailing list