[all-commits] [llvm/llvm-project] c01794: [libc++] Move once_flag outside of <mutex>

Louis Dionne via All-commits all-commits at lists.llvm.org
Thu Aug 31 11:57:05 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c01794e7ae8e37052e2268e7447d51665e073356
      https://github.com/llvm/llvm-project/commit/c01794e7ae8e37052e2268e7447d51665e073356
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2023-08-31 (Thu, 31 Aug 2023)

  Changed paths:
    M libcxx/include/CMakeLists.txt
    M libcxx/include/__locale
    A libcxx/include/__mutex/once_flag.h
    M libcxx/include/codecvt
    M libcxx/include/fstream
    M libcxx/include/ios
    M libcxx/include/locale
    M libcxx/include/module.modulemap.in
    M libcxx/include/mutex
    M libcxx/include/regex
    M libcxx/test/libcxx/transitive_includes/cxx03.csv
    M libcxx/test/libcxx/transitive_includes/cxx11.csv
    M libcxx/test/libcxx/transitive_includes/cxx14.csv
    M libcxx/test/libcxx/transitive_includes/cxx17.csv
    M libcxx/test/libcxx/transitive_includes/cxx20.csv
    M libcxx/test/libcxx/transitive_includes/cxx23.csv
    M libcxx/test/libcxx/transitive_includes/cxx26.csv

  Log Message:
  -----------
  [libc++] Move once_flag outside of <mutex>

This allows including once_flag directly from <__locale> instead of
depending on all of <mutex>, which requires threading. In turn, this
makes it easier to support locales on platforms without threading.

Drive-by change: clang-format once_flag.h and use _LIBCPP_HIDE_FROM_ABI

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




More information about the All-commits mailing list