[all-commits] [llvm/llvm-project] e04436: [libc++] Deprecate removed features macros. (#77879)

Mark de Wever via All-commits all-commits at lists.llvm.org
Tue Jan 16 10:13:11 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e0443624b9b418cd2a1b26cac662885aedfb4977
      https://github.com/llvm/llvm-project/commit/e0443624b9b418cd2a1b26cac662885aedfb4977
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2024-01-16 (Tue, 16 Jan 2024)

  Changed paths:
    M libcxx/docs/ReleaseNotes/18.rst
    M libcxx/docs/UsingLibcxx.rst
    M libcxx/include/__config
    M libcxx/test/libcxx/depr/enable_removed_cpp17_features.compile.pass.cpp
    A libcxx/test/libcxx/depr/enable_removed_cpp17_features.deprecated.verify.cpp
    A libcxx/test/libcxx/depr/enable_removed_cpp20_features.deprecated.verify.cpp

  Log Message:
  -----------
  [libc++] Deprecate removed features macros. (#77879)

We discussed the removal of these enable-all macros in the libc++
monthly meeting and we agreed that we should deprecate these macros in
LLVM 18, and then remove them in LLVM 19 since they can silently enable
deprecated features that are implemented after the first release of the
macro.

This patch does the first part of this -- it deprecates the macro.

Note that the file
  test/libcxx/depr/enable_removed_cpp20_features.compile.pass.cpp
does not exist so this file is not adapted. Since the feature is
deprecated and slated for removal soon the missing test is not
implemented.

Partly addresses: https://github.com/llvm/llvm-project/issues/75976

---------

Co-authored-by: Louis Dionne <ldionne.2 at gmail.com>




More information about the All-commits mailing list