[all-commits] [llvm/llvm-project] 05337a: [libc++] Rename *SAFE_STATIC to *CONSTINIT, and no...

Quuxplusone via All-commits all-commits at lists.llvm.org
Tue Feb 15 07:41:30 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 05337a756c6606fdbf2c0ff3a8399da3e60f1591
      https://github.com/llvm/llvm-project/commit/05337a756c6606fdbf2c0ff3a8399da3e60f1591
  Author: Arthur O'Dwyer <arthur.j.odwyer at gmail.com>
  Date:   2022-02-15 (Tue, 15 Feb 2022)

  Changed paths:
    M libcxx/include/__config
    M libcxx/src/debug.cpp
    M libcxx/src/experimental/memory_resource.cpp
    M libcxx/src/experimental/memory_resource_init_helper.h
    M libcxx/src/memory.cpp
    M libcxx/src/mutex.cpp
    M libcxx/src/random_shuffle.cpp
    M libcxx/src/support/runtime/exception_fallback.ipp
    M libcxx/src/support/runtime/new_handler_fallback.ipp
    M libcxx/test/std/experimental/language.support/support.coroutines/coroutine.trivial.awaitables/suspend_always.pass.cpp
    M libcxx/test/std/experimental/language.support/support.coroutines/coroutine.trivial.awaitables/suspend_never.pass.cpp
    M libcxx/test/std/language.support/support.coroutines/coroutine.trivial.awaitables/suspend_always.pass.cpp
    M libcxx/test/std/language.support/support.coroutines/coroutine.trivial.awaitables/suspend_never.pass.cpp
    M libcxx/test/std/utilities/any/any.class/any.cons/default.pass.cpp
    M libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/default.pass.cpp
    M libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/nullptr.pass.cpp
    M libcxx/test/support/test_macros.h
    M libcxxabi/src/cxa_default_handlers.cpp
    M libcxxabi/src/cxa_guard_impl.h
    M libcxxabi/src/fallback_malloc.cpp

  Log Message:
  -----------
  [libc++] Rename *SAFE_STATIC to *CONSTINIT, and normalize its uses.

In src/, most files can use `constinit` directly because they're always
compiled with C++20. But some files, like "libcxxabi/src/fallback_malloc.cpp",
can't, because they're `#include`d directly from test cases in libcxxabi/test/
and therefore must (currently) compile as C++03. We might consider refactoring
those offending tests, or at least marking them `UNSUPPORTED: c++03`.

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




More information about the All-commits mailing list