[all-commits] [llvm/llvm-project] d43033: [libc++] Update and normalize the "all the headers...

Quuxplusone via All-commits all-commits at lists.llvm.org
Thu Dec 3 12:07:32 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d430330788c646afcb2c32c8f24c63210b518a32
      https://github.com/llvm/llvm-project/commit/d430330788c646afcb2c32c8f24c63210b518a32
  Author: Arthur O'Dwyer <arthur.j.odwyer at gmail.com>
  Date:   2020-12-03 (Thu, 03 Dec 2020)

  Changed paths:
    M libcxx/include/barrier
    M libcxx/include/experimental/simd
    M libcxx/include/latch
    M libcxx/include/semaphore
    M libcxx/test/libcxx/double_include.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/thread/thread.semaphore/timed.pass.cpp
    M libcxx/test/std/thread/thread.semaphore/try_acquire.pass.cpp

  Log Message:
  -----------
  [libc++] Update and normalize the "all the headers" tests.

Some C++20 headers weren't added properly to all three of these
test files. Add them, and take the time to normalize the formatting
so that

    diff <(grep '#include' foo.cpp) <(grep '#include' bar.cpp)

shows no diffs (except that `no_assert_include` deliberately
excludes `<cassert>`).

- Add macro guards to <{barrier,latch,semaphore}>.
- Add macro guards to <experimental/simd>.
- Remove an include of <cassert> from <semaphore>.
- Instead, include <cassert> in the semaphore tests.

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




More information about the All-commits mailing list