[all-commits] [llvm/llvm-project] 044b89: [libc++] Use c++20 instead of c++2a consistently.

Marek Kurdej via All-commits all-commits at lists.llvm.org
Thu Jan 7 04:11:53 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 044b892c79b31a77bc0e6f52a0ec97c58b5b89b7
      https://github.com/llvm/llvm-project/commit/044b892c79b31a77bc0e6f52a0ec97c58b5b89b7
  Author: Marek Kurdej <marek.kurdej at gmail.com>
  Date:   2021-01-07 (Thu, 07 Jan 2021)

  Changed paths:
    A libcxx/cmake/caches/Generic-cxx20.cmake
    R libcxx/cmake/caches/Generic-cxx2a.cmake
    M libcxx/docs/DesignDocs/FeatureTestMacros.rst
    M libcxx/docs/FeatureTestMacroTable.rst
    M libcxx/docs/UsingLibcxx.rst
    M libcxx/include/__config
    M libcxx/include/new
    M libcxx/include/string
    M libcxx/include/string_view
    M libcxx/test/std/language.support/support.limits/support.limits.general/algorithm.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/any.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/array.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/atomic.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/bit.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/chrono.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/cmath.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/compare.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/complex.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/concepts.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/cstddef.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/deque.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/exception.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/execution.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/filesystem.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/forward_list.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/functional.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/iomanip.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/istream.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/iterator.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/limits.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/list.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/locale.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/map.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/memory.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/mutex.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/new.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/numbers.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/numeric.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/optional.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/ostream.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/regex.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/scoped_allocator.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/set.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/shared_mutex.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/span.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/string.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/string_view.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/tuple.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/type_traits.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/unordered_map.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/unordered_set.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/utility.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/variant.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/vector.version.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/version.version.pass.cpp
    M libcxx/test/support/test_macros.h
    M libcxx/utils/ci/buildkite-pipeline.yml
    M libcxx/utils/ci/run-buildbot
    M libcxx/utils/generate_feature_test_macro_components.py

  Log Message:
  -----------
  [libc++] Use c++20 instead of c++2a consistently.

* The only exception is that the flag -std=c++2a is still used not to break compatibility with older compilers (clang <= 9, gcc <= 9).
* Bump _LIBCPP_STD_VER for C++20 to 20 and use 21 for the future standard (C++2b).

That's a preparation step to add c++2b support to libc++.

Reviewed By: ldionne, #libc

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




More information about the All-commits mailing list