[all-commits] [llvm/llvm-project] bec96f: [libc++] Systematically define a macro to check wh...

Louis Dionne via All-commits all-commits at lists.llvm.org
Thu Mar 30 12:18:24 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bec96f6e959709a58f7e3e46205ae906c76e2f8c
      https://github.com/llvm/llvm-project/commit/bec96f6e959709a58f7e3e46205ae906c76e2f8c
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2023-03-30 (Thu, 30 Mar 2023)

  Changed paths:
    M libcxx/include/__availability
    M libcxx/include/__verbose_abort
    M libcxx/include/version
    M libcxx/test/libcxx/assertions/deprecated-link-time-custom-handler.pass.cpp
    M libcxx/test/libcxx/assertions/headers_declare_verbose_abort.sh.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/atomic.version.compile.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/barrier.version.compile.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/filesystem.version.compile.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/latch.version.compile.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/semaphore.version.compile.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/shared_mutex.version.compile.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/version.version.compile.pass.cpp
    M libcxx/utils/generate_feature_test_macro_components.py

  Log Message:
  -----------
  [libc++] Systematically define a macro to check whether a feature is unavailable

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.

Differential Revision: https://reviews.llvm.org/D147226




More information about the All-commits mailing list