[all-commits] [llvm/llvm-project] 1f2b7a: [libc++] Refactor locale_guard (#113694)

Louis Dionne via All-commits all-commits at lists.llvm.org
Fri Oct 25 09:29:16 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1f2b7ae6d78906df4f0c06961e3c9ed227986acf
      https://github.com/llvm/llvm-project/commit/1f2b7ae6d78906df4f0c06961e3c9ed227986acf
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2024-10-25 (Fri, 25 Oct 2024)

  Changed paths:
    M libcxx/include/CMakeLists.txt
    M libcxx/include/__locale_dir/locale_base_api/bsd_locale_fallbacks.h
    R libcxx/include/__locale_dir/locale_base_api/locale_guard.h
    A libcxx/include/__locale_dir/locale_guard.h
    M libcxx/include/module.modulemap
    M libcxx/src/iostream.cpp
    M libcxx/src/support/win32/locale_win32.cpp

  Log Message:
  -----------
  [libc++] Refactor locale_guard (#113694)

Rename __libcpp_locale_guard to just __locale_guard, since there's no
reason for it to have __libcpp_ in its name -- it's just an internal
utility.

Also, define __locale_guard unconditionally of
_LIBCPP_LOCALE__L_EXTENSIONS, since that header is only used on Windows
(where it has a custom definition) or from bsd_locale_fallbacks.h, which
is only included when the L extensions are not provided.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list