[all-commits] [llvm/llvm-project] 201184: [libc++] Remove <clocale> from some system_error t...

Louis Dionne via All-commits all-commits at lists.llvm.org
Wed Oct 28 06:50:05 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 201184b30b286340e323c08d7d1f5f86cfa15489
      https://github.com/llvm/llvm-project/commit/201184b30b286340e323c08d7d1f5f86cfa15489
  Author: Louis Dionne <ldionne at apple.com>
  Date:   2020-10-28 (Wed, 28 Oct 2020)

  Changed paths:
    M libcxx/test/std/diagnostics/syserr/syserr.syserr/syserr.syserr.members/ctor_error_code.pass.cpp
    M libcxx/test/std/diagnostics/syserr/syserr.syserr/syserr.syserr.members/ctor_error_code_const_char_pointer.pass.cpp
    M libcxx/test/std/diagnostics/syserr/syserr.syserr/syserr.syserr.members/ctor_error_code_string.pass.cpp
    M libcxx/test/std/diagnostics/syserr/syserr.syserr/syserr.syserr.members/ctor_int_error_category.pass.cpp
    M libcxx/test/std/diagnostics/syserr/syserr.syserr/syserr.syserr.members/ctor_int_error_category_const_char_pointer.pass.cpp
    M libcxx/test/std/diagnostics/syserr/syserr.syserr/syserr.syserr.members/ctor_int_error_category_string.pass.cpp

  Log Message:
  -----------
  [libc++] Remove <clocale> from some system_error tests

The explicit call to `std::setlocale(LC_ALL, "C")` isn't required, since
the Standard already says the equivalent of this call is performed on
program startup.


  Commit: 91336a0c619f26be35b1dd1c9480a42c4aacb21f
      https://github.com/llvm/llvm-project/commit/91336a0c619f26be35b1dd1c9480a42c4aacb21f
  Author: Louis Dionne <ldionne at apple.com>
  Date:   2020-10-28 (Wed, 28 Oct 2020)

  Changed paths:
    M libcxx/include/__locale
    M libcxx/include/locale.h
    M libcxx/test/libcxx/depr/depr.c.headers/extern_c.pass.cpp
    M libcxx/test/libcxx/depr/depr.c.headers/locale_h.pass.cpp
    M libcxx/test/libcxx/double_include.sh.cpp
    M libcxx/test/libcxx/include_as_c.sh.cpp
    M libcxx/test/libcxx/min_max_macros.compile.pass.cpp
    M libcxx/test/libcxx/no_assert_include.compile.pass.cpp
    M libcxx/test/std/depr/depr.c.headers/locale_h.pass.cpp

  Log Message:
  -----------
  [libc++] Move the #error message for no localization to <locale.h>

<locale.h> is lower level than <__locale>, so that's where we want the
error to live for systems that don't provide localization support.


Compare: https://github.com/llvm/llvm-project/compare/59fcf5038588...91336a0c619f


More information about the All-commits mailing list