Skip to content

Commit

Permalink
[libc++] Remove transitive includes from empty headers
Browse files Browse the repository at this point in the history
  • Loading branch information
philnik777 committed Nov 14, 2024
1 parent 6bd3f2e commit ff18475
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 503 deletions.
4 changes: 0 additions & 4 deletions libcxx/include/bit
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@ namespace std {
# pragma GCC system_header
#endif

#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 17
# include <cstdint>
#endif

#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
# include <cstdlib>
# include <iosfwd>
Expand Down
7 changes: 0 additions & 7 deletions libcxx/include/charconv
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,6 @@ _LIBCPP_BEGIN_NAMESPACE_STD

_LIBCPP_END_NAMESPACE_STD

#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 14
# include <cerrno>
# include <cstddef>
# include <initializer_list>
# include <new>
#endif

#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
# include <cmath>
# include <concepts>
Expand Down
6 changes: 0 additions & 6 deletions libcxx/include/compare
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,6 @@ namespace std {
# pragma GCC system_header
#endif

#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 17
# include <cstddef>
# include <cstdint>
# include <limits>
#endif

#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
# include <cmath>
# include <cstddef>
Expand Down
6 changes: 0 additions & 6 deletions libcxx/include/expected
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,4 @@ namespace std {
# pragma GCC system_header
#endif

#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
# include <cstddef>
# include <initializer_list>
# include <new>
#endif

#endif // _LIBCPP_EXPECTED
9 changes: 0 additions & 9 deletions libcxx/include/mdspan
Original file line number Diff line number Diff line change
Expand Up @@ -426,13 +426,4 @@ namespace std {
# pragma GCC system_header
#endif

#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
# include <array>
# include <cinttypes>
# include <concepts>
# include <cstddef>
# include <limits>
# include <span>
#endif

#endif // _LIBCPP_MDSPAN
9 changes: 0 additions & 9 deletions libcxx/include/memory_resource
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,6 @@ namespace std::pmr {
# pragma GCC system_header
#endif

#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 14
# include <cstddef>
# include <cstdint>
# include <limits>
# include <mutex>
# include <new>
# include <tuple>
#endif

#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
# include <stdexcept>
#endif
Expand Down
8 changes: 0 additions & 8 deletions libcxx/include/ranges
Original file line number Diff line number Diff line change
Expand Up @@ -446,14 +446,6 @@ namespace std {
# pragma GCC system_header
#endif

#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 17
# include <cstddef>
# include <limits>
# include <optional>
# include <span>
# include <tuple>
#endif

#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
# include <cstdlib>
# include <iosfwd>
Expand Down
107 changes: 0 additions & 107 deletions libcxx/test/libcxx/transitive_includes/cxx03.csv
Original file line number Diff line number Diff line change
Expand Up @@ -242,17 +242,14 @@ ccomplex utility
ccomplex variant
ccomplex vector
ccomplex version
charconv cerrno
charconv cmath
charconv concepts
charconv cstddef
charconv cstdint
charconv cstdlib
charconv cstring
charconv initializer_list
charconv iosfwd
charconv limits
charconv new
charconv type_traits
charconv version
chrono algorithm
Expand Down Expand Up @@ -571,12 +568,6 @@ exception typeinfo
exception version
execution cstddef
execution version
expected cstddef
expected cstdint
expected cstdlib
expected initializer_list
expected new
expected type_traits
expected version
experimental/iterator algorithm
experimental/iterator atomic
Expand Down Expand Up @@ -1340,53 +1331,6 @@ map utility
map variant
map vector
map version
mdspan algorithm
mdspan array
mdspan atomic
mdspan bit
mdspan cctype
mdspan cerrno
mdspan cinttypes
mdspan climits
mdspan clocale
mdspan cmath
mdspan compare
mdspan concepts
mdspan cstdarg
mdspan cstddef
mdspan cstdint
mdspan cstdio
mdspan cstdlib
mdspan cstring
mdspan ctime
mdspan cwchar
mdspan cwctype
mdspan exception
mdspan functional
mdspan initializer_list
mdspan ios
mdspan iosfwd
mdspan iterator
mdspan limits
mdspan locale
mdspan memory
mdspan mutex
mdspan new
mdspan optional
mdspan ratio
mdspan span
mdspan stdexcept
mdspan streambuf
mdspan string
mdspan string_view
mdspan system_error
mdspan tuple
mdspan type_traits
mdspan typeinfo
mdspan unordered_map
mdspan utility
mdspan variant
mdspan vector
mdspan version
memory atomic
memory cctype
Expand Down Expand Up @@ -1416,42 +1360,15 @@ memory typeinfo
memory utility
memory variant
memory version
memory_resource algorithm
memory_resource atomic
memory_resource bit
memory_resource cctype
memory_resource cerrno
memory_resource climits
memory_resource cmath
memory_resource compare
memory_resource concepts
memory_resource cstddef
memory_resource cstdint
memory_resource cstdio
memory_resource cstdlib
memory_resource cstring
memory_resource ctime
memory_resource cwchar
memory_resource cwctype
memory_resource exception
memory_resource initializer_list
memory_resource iosfwd
memory_resource iterator
memory_resource limits
memory_resource memory
memory_resource mutex
memory_resource new
memory_resource optional
memory_resource ratio
memory_resource stdexcept
memory_resource string
memory_resource string_view
memory_resource system_error
memory_resource tuple
memory_resource type_traits
memory_resource typeinfo
memory_resource utility
memory_resource variant
memory_resource version
mutex algorithm
mutex atomic
Expand Down Expand Up @@ -1772,52 +1689,28 @@ random utility
random variant
random vector
random version
ranges algorithm
ranges array
ranges atomic
ranges bit
ranges cctype
ranges cerrno
ranges climits
ranges clocale
ranges cmath
ranges compare
ranges concepts
ranges cstdarg
ranges cstddef
ranges cstdint
ranges cstdio
ranges cstdlib
ranges cstring
ranges ctime
ranges cwchar
ranges cwctype
ranges exception
ranges functional
ranges initializer_list
ranges ios
ranges iosfwd
ranges iterator
ranges limits
ranges locale
ranges memory
ranges mutex
ranges new
ranges optional
ranges ratio
ranges span
ranges stdexcept
ranges streambuf
ranges string
ranges string_view
ranges system_error
ranges tuple
ranges type_traits
ranges typeinfo
ranges unordered_map
ranges utility
ranges variant
ranges vector
ranges version
ratio climits
ratio cstdint
Expand Down
Loading

0 comments on commit ff18475

Please sign in to comment.