Skip to content

Commit

Permalink
[libc++] Tests transitive includes for all C++ versions.
Browse files Browse the repository at this point in the history
D132284 has an approach to reduce the number of transitive includes
based on the language version used. This requires to be able to validate
changes in transitive includes in all language versions.

Due to issues in the experimental library c++03 will be done separately.

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D132534
  • Loading branch information
mordante committed Aug 24, 2022
1 parent 7e25481 commit 3d68a67
Show file tree
Hide file tree
Showing 597 changed files with 11,482 additions and 128 deletions.
258 changes: 130 additions & 128 deletions libcxx/test/libcxx/transitive_includes.sh.cpp

Large diffs are not rendered by default.

@@ -0,0 +1 @@
experimental/type_traits
@@ -0,0 +1,2 @@
shared_mutex
version
28 changes: 28 additions & 0 deletions libcxx/test/libcxx/transitive_includes/cxx14/expected.algorithm
@@ -0,0 +1,28 @@
algorithm
atomic
bit
chrono
climits
cmath
compare
concepts
cstddef
cstdint
cstdlib
cstring
ctime
exception
initializer_list
iosfwd
iterator
limits
memory
new
ratio
stdexcept
tuple
type_traits
typeinfo
utility
variant
version
27 changes: 27 additions & 0 deletions libcxx/test/libcxx/transitive_includes/cxx14/expected.any
@@ -0,0 +1,27 @@
any
atomic
chrono
climits
cmath
compare
concepts
cstddef
cstdint
cstdlib
cstring
ctime
exception
initializer_list
iosfwd
iterator
limits
memory
new
ratio
stdexcept
tuple
type_traits
typeinfo
utility
variant
version
29 changes: 29 additions & 0 deletions libcxx/test/libcxx/transitive_includes/cxx14/expected.array
@@ -0,0 +1,29 @@
algorithm
array
atomic
bit
chrono
climits
cmath
compare
concepts
cstddef
cstdint
cstdlib
cstring
ctime
exception
initializer_list
iosfwd
iterator
limits
memory
new
ratio
stdexcept
tuple
type_traits
typeinfo
utility
variant
version
14 changes: 14 additions & 0 deletions libcxx/test/libcxx/transitive_includes/cxx14/expected.atomic
@@ -0,0 +1,14 @@
atomic
chrono
climits
cmath
compare
cstddef
cstdint
cstring
ctime
iosfwd
limits
ratio
type_traits
version
27 changes: 27 additions & 0 deletions libcxx/test/libcxx/transitive_includes/cxx14/expected.barrier
@@ -0,0 +1,27 @@
atomic
barrier
chrono
climits
cmath
compare
concepts
cstddef
cstdint
cstdlib
cstring
ctime
exception
initializer_list
iosfwd
iterator
limits
memory
new
ratio
stdexcept
tuple
type_traits
typeinfo
utility
variant
version
8 changes: 8 additions & 0 deletions libcxx/test/libcxx/transitive_includes/cxx14/expected.bit
@@ -0,0 +1,8 @@
bit
cstddef
cstdint
cstdlib
iosfwd
limits
type_traits
version
40 changes: 40 additions & 0 deletions libcxx/test/libcxx/transitive_includes/cxx14/expected.bitset
@@ -0,0 +1,40 @@
algorithm
array
atomic
bit
bitset
cctype
chrono
climits
cmath
compare
concepts
cstddef
cstdint
cstdio
cstdlib
cstring
ctime
cwchar
cwctype
exception
functional
initializer_list
iosfwd
iterator
limits
memory
new
optional
ratio
stdexcept
string
string_view
tuple
type_traits
typeinfo
unordered_map
utility
variant
vector
version
@@ -0,0 +1 @@
cassert
52 changes: 52 additions & 0 deletions libcxx/test/libcxx/transitive_includes/cxx14/expected.ccomplex
@@ -0,0 +1,52 @@
algorithm
array
atomic
bit
bitset
ccomplex
cctype
cerrno
chrono
climits
cmath
compare
complex
concepts
cstdarg
cstddef
cstdint
cstdio
cstdlib
cstring
ctime
cwchar
cwctype
exception
functional
initializer_list
ios
iosfwd
istream
iterator
limits
locale
memory
mutex
new
optional
ostream
ratio
sstream
stdexcept
streambuf
string
string_view
system_error
tuple
type_traits
typeinfo
unordered_map
utility
variant
vector
version
@@ -0,0 +1 @@
cctype
@@ -0,0 +1 @@
cerrno
@@ -0,0 +1 @@
cfenv
@@ -0,0 +1 @@
cfloat
13 changes: 13 additions & 0 deletions libcxx/test/libcxx/transitive_includes/cxx14/expected.charconv
@@ -0,0 +1,13 @@
cerrno
charconv
cmath
concepts
cstddef
cstdint
cstdlib
cstring
initializer_list
iosfwd
limits
type_traits
version
11 changes: 11 additions & 0 deletions libcxx/test/libcxx/transitive_includes/cxx14/expected.chrono
@@ -0,0 +1,11 @@
chrono
climits
cmath
compare
cstddef
cstdint
ctime
limits
ratio
type_traits
version
@@ -0,0 +1,2 @@
cinttypes
cstdint
@@ -0,0 +1 @@
ciso646
@@ -0,0 +1 @@
climits
@@ -0,0 +1 @@
clocale
6 changes: 6 additions & 0 deletions libcxx/test/libcxx/transitive_includes/cxx14/expected.cmath
@@ -0,0 +1,6 @@
cmath
cstddef
cstdint
limits
type_traits
version
43 changes: 43 additions & 0 deletions libcxx/test/libcxx/transitive_includes/cxx14/expected.codecvt
@@ -0,0 +1,43 @@
algorithm
array
atomic
bit
cctype
cerrno
chrono
climits
cmath
codecvt
compare
concepts
cstddef
cstdint
cstdio
cstdlib
cstring
ctime
cwchar
cwctype
exception
functional
initializer_list
iosfwd
iterator
limits
memory
mutex
new
optional
ratio
stdexcept
string
string_view
system_error
tuple
type_traits
typeinfo
unordered_map
utility
variant
vector
version
7 changes: 7 additions & 0 deletions libcxx/test/libcxx/transitive_includes/cxx14/expected.compare
@@ -0,0 +1,7 @@
cmath
compare
cstddef
cstdint
limits
type_traits
version
51 changes: 51 additions & 0 deletions libcxx/test/libcxx/transitive_includes/cxx14/expected.complex
@@ -0,0 +1,51 @@
algorithm
array
atomic
bit
bitset
cctype
cerrno
chrono
climits
cmath
compare
complex
concepts
cstdarg
cstddef
cstdint
cstdio
cstdlib
cstring
ctime
cwchar
cwctype
exception
functional
initializer_list
ios
iosfwd
istream
iterator
limits
locale
memory
mutex
new
optional
ostream
ratio
sstream
stdexcept
streambuf
string
string_view
system_error
tuple
type_traits
typeinfo
unordered_map
utility
variant
vector
version
@@ -0,0 +1,5 @@
concepts
cstddef
cstdint
type_traits
version

0 comments on commit 3d68a67

Please sign in to comment.