[libcxx-commits] [PATCH] D144994: [Draft][libc++][modules] Adds std module.

Mark de Wever via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sat Mar 18 09:59:41 PDT 2023


Mordante updated this revision to Diff 506302.
Mordante added a comment.

Minor improvements

Ran the tests using the compat module with the tests converted using
the test conversion script. After some minor fixes 222 tests fail and 
need triaging. (This are more tests than before, but now the tests use 
less headers since most headers are now available as module.)

- Improved the conversion script
  - Imports are moved the the end.
  - Modularized header #ifndefs are grouped.
  - Disables tests using deprecated features. These use a compiler switch that doesn't work with modules.
- Updated the documentation.
- Minor module fixes.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D144994/new/

https://reviews.llvm.org/D144994

Files:
  libcxx/CMakeLists.txt
  libcxx/cmake/caches/Generic-module-std-compat.cmake
  libcxx/cmake/caches/Generic-module-std.cmake
  libcxx/docs/Modules.rst
  libcxx/docs/index.rst
  libcxx/include/__algorithm/ranges_find_if.h
  libcxx/include/__algorithm/ranges_min_element.h
  libcxx/include/__compare/synth_three_way.h
  libcxx/include/tuple
  libcxx/stdmodules/.clang-format
  libcxx/stdmodules/CMakeLists.txt
  libcxx/stdmodules/CMakeLists.txt.in
  libcxx/stdmodules/std-algorithm.cppm
  libcxx/stdmodules/std-any.cppm
  libcxx/stdmodules/std-array.cppm
  libcxx/stdmodules/std-atomic.cppm
  libcxx/stdmodules/std-barrier.cppm
  libcxx/stdmodules/std-bit.cppm
  libcxx/stdmodules/std-bitset.cppm
  libcxx/stdmodules/std-cctype.cppm
  libcxx/stdmodules/std-cfenv.cppm
  libcxx/stdmodules/std-charconv.cppm
  libcxx/stdmodules/std-chrono.cppm
  libcxx/stdmodules/std-cinttypes.cppm
  libcxx/stdmodules/std-clocale.cppm
  libcxx/stdmodules/std-cmath.cppm
  libcxx/stdmodules/std-codecvt.cppm
  libcxx/stdmodules/std-compare.cppm
  libcxx/stdmodules/std-compat-cctype.cppm
  libcxx/stdmodules/std-compat-cfenv.cppm
  libcxx/stdmodules/std-compat-cinttypes.cppm
  libcxx/stdmodules/std-compat-clocale.cppm
  libcxx/stdmodules/std-compat-cmath.cppm
  libcxx/stdmodules/std-compat-csetjmp.cppm
  libcxx/stdmodules/std-compat-csignal.cppm
  libcxx/stdmodules/std-compat-cstdarg.cppm
  libcxx/stdmodules/std-compat-cstddef.cppm
  libcxx/stdmodules/std-compat-cstdint.cppm
  libcxx/stdmodules/std-compat-cstdio.cppm
  libcxx/stdmodules/std-compat-cstdlib.cppm
  libcxx/stdmodules/std-compat-cstring.cppm
  libcxx/stdmodules/std-compat-ctime.cppm
  libcxx/stdmodules/std-compat-cuchar.cppm
  libcxx/stdmodules/std-compat-cwchar.cppm
  libcxx/stdmodules/std-compat-cwctype.cppm
  libcxx/stdmodules/std-compat-stddef.cppm
  libcxx/stdmodules/std-compat.cppm
  libcxx/stdmodules/std-complex.cppm
  libcxx/stdmodules/std-concepts.cppm
  libcxx/stdmodules/std-condition_variable.cppm
  libcxx/stdmodules/std-coroutine.cppm
  libcxx/stdmodules/std-csetjmp.cppm
  libcxx/stdmodules/std-csignal.cppm
  libcxx/stdmodules/std-cstdarg.cppm
  libcxx/stdmodules/std-cstddef.cppm
  libcxx/stdmodules/std-cstdio.cppm
  libcxx/stdmodules/std-cstdlib.cppm
  libcxx/stdmodules/std-cstring.cppm
  libcxx/stdmodules/std-ctime.cppm
  libcxx/stdmodules/std-cuchar.cppm
  libcxx/stdmodules/std-cwchar.cppm
  libcxx/stdmodules/std-cwctype.cppm
  libcxx/stdmodules/std-deque.cppm
  libcxx/stdmodules/std-exception.cppm
  libcxx/stdmodules/std-execution.cppm
  libcxx/stdmodules/std-expected.cppm
  libcxx/stdmodules/std-filesystem.cppm
  libcxx/stdmodules/std-flat_map.cppm
  libcxx/stdmodules/std-flat_set.cppm
  libcxx/stdmodules/std-format.cppm
  libcxx/stdmodules/std-forward_list.cppm
  libcxx/stdmodules/std-fstream.cppm
  libcxx/stdmodules/std-functional.cppm
  libcxx/stdmodules/std-future.cppm
  libcxx/stdmodules/std-generator.cppm
  libcxx/stdmodules/std-initializer_list.cppm
  libcxx/stdmodules/std-iomanip.cppm
  libcxx/stdmodules/std-ios.cppm
  libcxx/stdmodules/std-iostream.cppm
  libcxx/stdmodules/std-istream.cppm
  libcxx/stdmodules/std-iterator.cppm
  libcxx/stdmodules/std-latch.cppm
  libcxx/stdmodules/std-limits.cppm
  libcxx/stdmodules/std-list.cppm
  libcxx/stdmodules/std-locale.cppm
  libcxx/stdmodules/std-map.cppm
  libcxx/stdmodules/std-mdspan.cppm
  libcxx/stdmodules/std-memory.cppm
  libcxx/stdmodules/std-memory_resource.cppm
  libcxx/stdmodules/std-mutex.cppm
  libcxx/stdmodules/std-new.cppm
  libcxx/stdmodules/std-numbers.cppm
  libcxx/stdmodules/std-numeric.cppm
  libcxx/stdmodules/std-optional.cppm
  libcxx/stdmodules/std-ostream.cppm
  libcxx/stdmodules/std-print.cppm
  libcxx/stdmodules/std-queue.cppm
  libcxx/stdmodules/std-random.cppm
  libcxx/stdmodules/std-ranges.cppm
  libcxx/stdmodules/std-ratio.cppm
  libcxx/stdmodules/std-regex.cppm
  libcxx/stdmodules/std-scoped_allocator.cppm
  libcxx/stdmodules/std-semaphore.cppm
  libcxx/stdmodules/std-set.cppm
  libcxx/stdmodules/std-shared_mutex.cppm
  libcxx/stdmodules/std-source_location.cppm
  libcxx/stdmodules/std-span.cppm
  libcxx/stdmodules/std-spanstream.cppm
  libcxx/stdmodules/std-sstream.cppm
  libcxx/stdmodules/std-stack.cppm
  libcxx/stdmodules/std-stacktrace.cppm
  libcxx/stdmodules/std-stdexcept.cppm
  libcxx/stdmodules/std-stdfloat.cppm
  libcxx/stdmodules/std-stop_token.cppm
  libcxx/stdmodules/std-streambuf.cppm
  libcxx/stdmodules/std-string.cppm
  libcxx/stdmodules/std-string_view.cppm
  libcxx/stdmodules/std-strstream.cppm
  libcxx/stdmodules/std-syncstream.cppm
  libcxx/stdmodules/std-system_error.cppm
  libcxx/stdmodules/std-thread.cppm
  libcxx/stdmodules/std-tuple.cppm
  libcxx/stdmodules/std-type_traits.cppm
  libcxx/stdmodules/std-typeindex.cppm
  libcxx/stdmodules/std-typeinfo.cppm
  libcxx/stdmodules/std-unordered_map.cppm
  libcxx/stdmodules/std-unordered_set.cppm
  libcxx/stdmodules/std-utility.cppm
  libcxx/stdmodules/std-valarray.cppm
  libcxx/stdmodules/std-variant.cppm
  libcxx/stdmodules/std-vector.cppm
  libcxx/stdmodules/std.cppm
  libcxx/test/configs/cmake-bridge.cfg.in
  libcxx/test/configs/llvm-libc++-shared.cfg.in
  libcxx/test/configs/llvm-libc++-static.cfg.in
  libcxx/test/libcxx/language.support/support.types/cstddef.compile.pass.cpp
  libcxx/test/std/time/time.syn/formatter_tests.h
  libcxx/utils/ci/buildkite-pipeline.yml
  libcxx/utils/ci/run-buildbot
  libcxx/utils/libcxx/test/dsl.py
  libcxx/utils/libcxx/test/params.py
  libcxx/utils/use_modules_in_test.py
  runtimes/CMakeLists.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144994.506302.patch
Type: text/x-patch
Size: 330098 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230318/0127aa30/attachment-0001.bin>


More information about the libcxx-commits mailing list