[all-commits] [llvm/llvm-project] 1bd7c0: [libc++] Clean up tests for "optional" C11 features

Louis Dionne via All-commits all-commits at lists.llvm.org
Tue Jul 28 12:13:24 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1bd7c02233969b430b2d49e95345f507fdcc9f30
      https://github.com/llvm/llvm-project/commit/1bd7c02233969b430b2d49e95345f507fdcc9f30
  Author: Louis Dionne <ldionne at apple.com>
  Date:   2020-07-28 (Tue, 28 Jul 2020)

  Changed paths:
    M libcxx/include/__config
    A libcxx/test/libcxx/language.support/has_aligned_alloc.compile.pass.cpp
    R libcxx/test/libcxx/language.support/has_c11_features.pass.cpp
    A libcxx/test/libcxx/language.support/has_quick_exit.compile.pass.cpp
    A libcxx/test/libcxx/language.support/has_timespec_get.compile.pass.cpp
    M libcxx/test/std/depr/depr.c.headers/float_h.pass.cpp
    M libcxx/test/std/language.support/support.limits/c.limits/cfloat.pass.cpp
    A libcxx/test/std/language.support/support.start.term/at_quick_exit.compile.fail.cpp
    A libcxx/test/std/language.support/support.start.term/quick_exit.compile.fail.cpp
    M libcxx/test/std/language.support/support.start.term/quick_exit.pass.cpp
    R libcxx/test/std/language.support/support.start.term/quick_exit_check1.compile.fail.cpp
    R libcxx/test/std/language.support/support.start.term/quick_exit_check2.compile.fail.cpp
    M libcxx/test/support/msvc_stdlib_force_include.h
    M libcxx/test/support/test_macros.h

  Log Message:
  -----------
  [libc++] Clean up tests for "optional" C11 features

First, add a TEST_HAS_QUICK_EXIT macro to mirror other C11 features like
TEST_HAS_ALIGNED_ALLOC, and update the tests for that.

Second, get rid of TEST_HAS_C11_FEATURES and _LIBCPP_HAS_C11_FEATURES,
which were only used to ensure that feature macros don't get out of
sync between <__config> and "test_macros.h". This is not necessary
anymore, since we have tests for each individual macro now.


  Commit: 67dfba96296b37f7bac9b4a68572288bc44b63b2
      https://github.com/llvm/llvm-project/commit/67dfba96296b37f7bac9b4a68572288bc44b63b2
  Author: Louis Dionne <ldionne at apple.com>
  Date:   2020-07-28 (Tue, 28 Jul 2020)

  Changed paths:
    M libcxx/include/__config
    M libcxx/test/support/test_macros.h

  Log Message:
  -----------
  [libc++] Provide std::aligned_alloc and std::timespec_get on Apple platforms

rdar://66113878


Compare: https://github.com/llvm/llvm-project/compare/69152a11cf18...67dfba96296b


More information about the All-commits mailing list