[libcxx-commits] [PATCH] D147226: [libc++] Systematically define a macro to check whether a feature is unavailable

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Mar 30 05:55:29 PDT 2023


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

Previously, we inconsistently defined whether a feature was unavailable
on a given deployment target. We would have availability attributes for
all features, but only some features had the equivalent of a _HAS_NO_FOO
macro in the form of the DISABLE_FTM___foo macros. Instead, systematically
define a _HAS_NO_FOO macro, which makes it easier to understand how to
add availability markup for a new platform.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D147226

Files:
  libcxx/include/__availability
  libcxx/include/version
  libcxx/test/std/language.support/support.limits/support.limits.general/atomic.version.compile.pass.cpp
  libcxx/test/std/language.support/support.limits/support.limits.general/barrier.version.compile.pass.cpp
  libcxx/test/std/language.support/support.limits/support.limits.general/filesystem.version.compile.pass.cpp
  libcxx/test/std/language.support/support.limits/support.limits.general/latch.version.compile.pass.cpp
  libcxx/test/std/language.support/support.limits/support.limits.general/semaphore.version.compile.pass.cpp
  libcxx/test/std/language.support/support.limits/support.limits.general/shared_mutex.version.compile.pass.cpp
  libcxx/test/std/language.support/support.limits/support.limits.general/version.version.compile.pass.cpp
  libcxx/utils/generate_feature_test_macro_components.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147226.509635.patch
Type: text/x-patch
Size: 59490 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230330/8fa2259d/attachment-0001.bin>


More information about the libcxx-commits mailing list