[all-commits] [llvm/llvm-project] 79702f: [libc++][Modules] Add missing includes and exports

Ian Anderson via All-commits all-commits at lists.llvm.org
Sun May 7 17:55:02 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 79702f7f593dece7afb67fec03df884d50525b96
      https://github.com/llvm/llvm-project/commit/79702f7f593dece7afb67fec03df884d50525b96
  Author: Ian Anderson <iana at apple.com>
  Date:   2023-05-07 (Sun, 07 May 2023)

  Changed paths:
    M libcxx/include/__algorithm/ranges_minmax.h
    M libcxx/include/__algorithm/ranges_partition_copy.h
    M libcxx/include/__format/format_arg.h
    M libcxx/include/__functional/bind.h
    M libcxx/include/__functional/bind_back.h
    M libcxx/include/__functional/bind_front.h
    M libcxx/include/__functional/boyer_moore_searcher.h
    M libcxx/include/__functional/compose.h
    M libcxx/include/__functional/function.h
    M libcxx/include/__functional/not_fn.h
    M libcxx/include/__hash_table
    M libcxx/include/__locale
    M libcxx/include/__ranges/copyable_box.h
    M libcxx/include/__ranges/filter_view.h
    M libcxx/include/__ranges/join_view.h
    M libcxx/include/__ranges/range_adaptor.h
    M libcxx/include/__ranges/transform_view.h
    M libcxx/include/__ranges/zip_view.h
    M libcxx/include/__tree
    M libcxx/include/module.modulemap.in
    M libcxx/include/optional
    M libcxx/include/string_view
    M libcxx/include/tuple
    M libcxx/include/unordered_map

  Log Message:
  -----------
  [libc++][Modules] Add missing includes and exports

Several headers are missing includes for things they use.

type_traits.is_enum needs to export type_traits.integral_constant so that clients can access its `value` member without explicitly including __type_traits/integral_constant.h themselves.

Make `subrange_fwd` a peer submodule to `subrange` rather than a submodule of it, and have `subrange` export `subrange_fwd`. That will make it easier to programmatically generate modules for the private detail headers, and it will accomplish the same effect that __ranges/subrange.h will make subrange_kind visible.

Reviewed By: Mordante, #libc

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




More information about the All-commits mailing list