[libcxx-commits] [PATCH] D132534: [libc++] Tests transitive includes for all C++ versions.
Louis Dionne via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Aug 24 09:00:55 PDT 2022
Mordante created this revision.
Herald added subscribers: miyuki, arphaman, arichardson.
Herald added a project: All.
ldionne published this revision for review.
ldionne added a comment.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.
LGTM assuming 100% similarity between the old expected headers and the new ones in `cxx2b/`.
================
Comment at: libcxx/test/libcxx/transitive_includes.sh.cpp:53-54
# the file and run this test.
+# WARNING this regeneration needs to be done for all supported language versions of libc++.
+# for std in c++03 c++11 c++14 c++17 c++20 c++2b; do ${lit} -Dstd=$std ${path_to_this_file}; done
regenerate_expected_results = False
----------------
================
Comment at: libcxx/test/libcxx/transitive_includes.sh.cpp:61
if regenerate_expected_results:
- print(f"// {RUN}: rm -rf %S/transitive_includes")
- print(f"// {RUN}: mkdir %S/transitive_includes")
+ print(f"// {RUN}: echo rm -rf %S/transitive_includes/%{{cxx_std}}") ##### TODO remove echo
+ print(f"// {RUN}: mkdir %S/transitive_includes/%{{cxx_std}}")
----------------
Don't forget this!
D132284 <https://reviews.llvm.org/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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D132534
Files:
libcxx/test/libcxx/transitive_includes.sh.cpp
libcxx/test/libcxx/transitive_includes/cxx11/expected.algorithm
libcxx/test/libcxx/transitive_includes/cxx11/expected.any
libcxx/test/libcxx/transitive_includes/cxx11/expected.array
libcxx/test/libcxx/transitive_includes/cxx11/expected.atomic
libcxx/test/libcxx/transitive_includes/cxx11/expected.barrier
libcxx/test/libcxx/transitive_includes/cxx11/expected.bit
libcxx/test/libcxx/transitive_includes/cxx11/expected.bitset
libcxx/test/libcxx/transitive_includes/cxx11/expected.cassert
libcxx/test/libcxx/transitive_includes/cxx11/expected.ccomplex
libcxx/test/libcxx/transitive_includes/cxx11/expected.cctype
libcxx/test/libcxx/transitive_includes/cxx11/expected.cerrno
libcxx/test/libcxx/transitive_includes/cxx11/expected.cfenv
libcxx/test/libcxx/transitive_includes/cxx11/expected.cfloat
libcxx/test/libcxx/transitive_includes/cxx11/expected.charconv
libcxx/test/libcxx/transitive_includes/cxx11/expected.chrono
libcxx/test/libcxx/transitive_includes/cxx11/expected.cinttypes
libcxx/test/libcxx/transitive_includes/cxx11/expected.ciso646
libcxx/test/libcxx/transitive_includes/cxx11/expected.climits
libcxx/test/libcxx/transitive_includes/cxx11/expected.clocale
libcxx/test/libcxx/transitive_includes/cxx11/expected.cmath
libcxx/test/libcxx/transitive_includes/cxx11/expected.codecvt
libcxx/test/libcxx/transitive_includes/cxx11/expected.compare
libcxx/test/libcxx/transitive_includes/cxx11/expected.complex
libcxx/test/libcxx/transitive_includes/cxx11/expected.concepts
libcxx/test/libcxx/transitive_includes/cxx11/expected.condition_variable
libcxx/test/libcxx/transitive_includes/cxx11/expected.coroutine
libcxx/test/libcxx/transitive_includes/cxx11/expected.csetjmp
libcxx/test/libcxx/transitive_includes/cxx11/expected.csignal
libcxx/test/libcxx/transitive_includes/cxx11/expected.cstdarg
libcxx/test/libcxx/transitive_includes/cxx11/expected.cstdbool
libcxx/test/libcxx/transitive_includes/cxx11/expected.cstddef
libcxx/test/libcxx/transitive_includes/cxx11/expected.cstdint
libcxx/test/libcxx/transitive_includes/cxx11/expected.cstdio
libcxx/test/libcxx/transitive_includes/cxx11/expected.cstdlib
libcxx/test/libcxx/transitive_includes/cxx11/expected.cstring
libcxx/test/libcxx/transitive_includes/cxx11/expected.ctgmath
libcxx/test/libcxx/transitive_includes/cxx11/expected.ctime
libcxx/test/libcxx/transitive_includes/cxx11/expected.cuchar
libcxx/test/libcxx/transitive_includes/cxx11/expected.cwchar
libcxx/test/libcxx/transitive_includes/cxx11/expected.cwctype
libcxx/test/libcxx/transitive_includes/cxx11/expected.deque
libcxx/test/libcxx/transitive_includes/cxx11/expected.exception
libcxx/test/libcxx/transitive_includes/cxx11/expected.execution
libcxx/test/libcxx/transitive_includes/cxx11/expected.experimental_algorithm
libcxx/test/libcxx/transitive_includes/cxx11/expected.experimental_coroutine
libcxx/test/libcxx/transitive_includes/cxx11/expected.experimental_deque
libcxx/test/libcxx/transitive_includes/cxx11/expected.experimental_forward_list
libcxx/test/libcxx/transitive_includes/cxx11/expected.experimental_functional
libcxx/test/libcxx/transitive_includes/cxx11/expected.experimental_iterator
libcxx/test/libcxx/transitive_includes/cxx11/expected.experimental_list
libcxx/test/libcxx/transitive_includes/cxx11/expected.experimental_map
libcxx/test/libcxx/transitive_includes/cxx11/expected.experimental_memory_resource
libcxx/test/libcxx/transitive_includes/cxx11/expected.experimental_propagate_const
libcxx/test/libcxx/transitive_includes/cxx11/expected.experimental_regex
libcxx/test/libcxx/transitive_includes/cxx11/expected.experimental_set
libcxx/test/libcxx/transitive_includes/cxx11/expected.experimental_simd
libcxx/test/libcxx/transitive_includes/cxx11/expected.experimental_string
libcxx/test/libcxx/transitive_includes/cxx11/expected.experimental_type_traits
libcxx/test/libcxx/transitive_includes/cxx11/expected.experimental_unordered_map
libcxx/test/libcxx/transitive_includes/cxx11/expected.experimental_unordered_set
libcxx/test/libcxx/transitive_includes/cxx11/expected.experimental_utility
libcxx/test/libcxx/transitive_includes/cxx11/expected.experimental_vector
libcxx/test/libcxx/transitive_includes/cxx11/expected.ext_hash_map
libcxx/test/libcxx/transitive_includes/cxx11/expected.ext_hash_set
libcxx/test/libcxx/transitive_includes/cxx11/expected.filesystem
libcxx/test/libcxx/transitive_includes/cxx11/expected.format
libcxx/test/libcxx/transitive_includes/cxx11/expected.forward_list
libcxx/test/libcxx/transitive_includes/cxx11/expected.fstream
libcxx/test/libcxx/transitive_includes/cxx11/expected.functional
libcxx/test/libcxx/transitive_includes/cxx11/expected.future
libcxx/test/libcxx/transitive_includes/cxx11/expected.initializer_list
libcxx/test/libcxx/transitive_includes/cxx11/expected.iomanip
libcxx/test/libcxx/transitive_includes/cxx11/expected.ios
libcxx/test/libcxx/transitive_includes/cxx11/expected.iosfwd
libcxx/test/libcxx/transitive_includes/cxx11/expected.iostream
libcxx/test/libcxx/transitive_includes/cxx11/expected.istream
libcxx/test/libcxx/transitive_includes/cxx11/expected.iterator
libcxx/test/libcxx/transitive_includes/cxx11/expected.latch
libcxx/test/libcxx/transitive_includes/cxx11/expected.limits
libcxx/test/libcxx/transitive_includes/cxx11/expected.list
libcxx/test/libcxx/transitive_includes/cxx11/expected.locale
libcxx/test/libcxx/transitive_includes/cxx11/expected.map
libcxx/test/libcxx/transitive_includes/cxx11/expected.memory
libcxx/test/libcxx/transitive_includes/cxx11/expected.mutex
libcxx/test/libcxx/transitive_includes/cxx11/expected.new
libcxx/test/libcxx/transitive_includes/cxx11/expected.numbers
libcxx/test/libcxx/transitive_includes/cxx11/expected.numeric
libcxx/test/libcxx/transitive_includes/cxx11/expected.optional
libcxx/test/libcxx/transitive_includes/cxx11/expected.ostream
libcxx/test/libcxx/transitive_includes/cxx11/expected.queue
libcxx/test/libcxx/transitive_includes/cxx11/expected.random
libcxx/test/libcxx/transitive_includes/cxx11/expected.ranges
libcxx/test/libcxx/transitive_includes/cxx11/expected.ratio
libcxx/test/libcxx/transitive_includes/cxx11/expected.regex
libcxx/test/libcxx/transitive_includes/cxx11/expected.scoped_allocator
libcxx/test/libcxx/transitive_includes/cxx11/expected.semaphore
libcxx/test/libcxx/transitive_includes/cxx11/expected.set
libcxx/test/libcxx/transitive_includes/cxx11/expected.shared_mutex
libcxx/test/libcxx/transitive_includes/cxx11/expected.span
libcxx/test/libcxx/transitive_includes/cxx11/expected.sstream
libcxx/test/libcxx/transitive_includes/cxx11/expected.stack
libcxx/test/libcxx/transitive_includes/cxx11/expected.stdexcept
libcxx/test/libcxx/transitive_includes/cxx11/expected.streambuf
libcxx/test/libcxx/transitive_includes/cxx11/expected.string
libcxx/test/libcxx/transitive_includes/cxx11/expected.string_view
libcxx/test/libcxx/transitive_includes/cxx11/expected.strstream
libcxx/test/libcxx/transitive_includes/cxx11/expected.system_error
libcxx/test/libcxx/transitive_includes/cxx11/expected.thread
libcxx/test/libcxx/transitive_includes/cxx11/expected.tuple
libcxx/test/libcxx/transitive_includes/cxx11/expected.type_traits
libcxx/test/libcxx/transitive_includes/cxx11/expected.typeindex
libcxx/test/libcxx/transitive_includes/cxx11/expected.typeinfo
libcxx/test/libcxx/transitive_includes/cxx11/expected.unordered_map
libcxx/test/libcxx/transitive_includes/cxx11/expected.unordered_set
libcxx/test/libcxx/transitive_includes/cxx11/expected.utility
libcxx/test/libcxx/transitive_includes/cxx11/expected.valarray
libcxx/test/libcxx/transitive_includes/cxx11/expected.variant
libcxx/test/libcxx/transitive_includes/cxx11/expected.vector
libcxx/test/libcxx/transitive_includes/cxx11/expected.version
libcxx/test/libcxx/transitive_includes/cxx14/expected.algorithm
libcxx/test/libcxx/transitive_includes/cxx14/expected.any
libcxx/test/libcxx/transitive_includes/cxx14/expected.array
libcxx/test/libcxx/transitive_includes/cxx14/expected.atomic
libcxx/test/libcxx/transitive_includes/cxx14/expected.barrier
libcxx/test/libcxx/transitive_includes/cxx14/expected.bit
libcxx/test/libcxx/transitive_includes/cxx14/expected.bitset
libcxx/test/libcxx/transitive_includes/cxx14/expected.cassert
libcxx/test/libcxx/transitive_includes/cxx14/expected.ccomplex
libcxx/test/libcxx/transitive_includes/cxx14/expected.cctype
libcxx/test/libcxx/transitive_includes/cxx14/expected.cerrno
libcxx/test/libcxx/transitive_includes/cxx14/expected.cfenv
libcxx/test/libcxx/transitive_includes/cxx14/expected.cfloat
libcxx/test/libcxx/transitive_includes/cxx14/expected.charconv
libcxx/test/libcxx/transitive_includes/cxx14/expected.chrono
libcxx/test/libcxx/transitive_includes/cxx14/expected.cinttypes
libcxx/test/libcxx/transitive_includes/cxx14/expected.ciso646
libcxx/test/libcxx/transitive_includes/cxx14/expected.climits
libcxx/test/libcxx/transitive_includes/cxx14/expected.clocale
libcxx/test/libcxx/transitive_includes/cxx14/expected.cmath
libcxx/test/libcxx/transitive_includes/cxx14/expected.codecvt
libcxx/test/libcxx/transitive_includes/cxx14/expected.compare
libcxx/test/libcxx/transitive_includes/cxx14/expected.complex
libcxx/test/libcxx/transitive_includes/cxx14/expected.concepts
libcxx/test/libcxx/transitive_includes/cxx14/expected.condition_variable
libcxx/test/libcxx/transitive_includes/cxx14/expected.coroutine
libcxx/test/libcxx/transitive_includes/cxx14/expected.csetjmp
libcxx/test/libcxx/transitive_includes/cxx14/expected.csignal
libcxx/test/libcxx/transitive_includes/cxx14/expected.cstdarg
libcxx/test/libcxx/transitive_includes/cxx14/expected.cstdbool
libcxx/test/libcxx/transitive_includes/cxx14/expected.cstddef
libcxx/test/libcxx/transitive_includes/cxx14/expected.cstdint
libcxx/test/libcxx/transitive_includes/cxx14/expected.cstdio
libcxx/test/libcxx/transitive_includes/cxx14/expected.cstdlib
libcxx/test/libcxx/transitive_includes/cxx14/expected.cstring
libcxx/test/libcxx/transitive_includes/cxx14/expected.ctgmath
libcxx/test/libcxx/transitive_includes/cxx14/expected.ctime
libcxx/test/libcxx/transitive_includes/cxx14/expected.cuchar
libcxx/test/libcxx/transitive_includes/cxx14/expected.cwchar
libcxx/test/libcxx/transitive_includes/cxx14/expected.cwctype
libcxx/test/libcxx/transitive_includes/cxx14/expected.deque
libcxx/test/libcxx/transitive_includes/cxx14/expected.exception
libcxx/test/libcxx/transitive_includes/cxx14/expected.execution
libcxx/test/libcxx/transitive_includes/cxx14/expected.experimental_algorithm
libcxx/test/libcxx/transitive_includes/cxx14/expected.experimental_coroutine
libcxx/test/libcxx/transitive_includes/cxx14/expected.experimental_deque
libcxx/test/libcxx/transitive_includes/cxx14/expected.experimental_forward_list
libcxx/test/libcxx/transitive_includes/cxx14/expected.experimental_functional
libcxx/test/libcxx/transitive_includes/cxx14/expected.experimental_iterator
libcxx/test/libcxx/transitive_includes/cxx14/expected.experimental_list
libcxx/test/libcxx/transitive_includes/cxx14/expected.experimental_map
libcxx/test/libcxx/transitive_includes/cxx14/expected.experimental_memory_resource
libcxx/test/libcxx/transitive_includes/cxx14/expected.experimental_propagate_const
libcxx/test/libcxx/transitive_includes/cxx14/expected.experimental_regex
libcxx/test/libcxx/transitive_includes/cxx14/expected.experimental_set
libcxx/test/libcxx/transitive_includes/cxx14/expected.experimental_simd
libcxx/test/libcxx/transitive_includes/cxx14/expected.experimental_string
libcxx/test/libcxx/transitive_includes/cxx14/expected.experimental_type_traits
libcxx/test/libcxx/transitive_includes/cxx14/expected.experimental_unordered_map
libcxx/test/libcxx/transitive_includes/cxx14/expected.experimental_unordered_set
libcxx/test/libcxx/transitive_includes/cxx14/expected.experimental_utility
libcxx/test/libcxx/transitive_includes/cxx14/expected.experimental_vector
libcxx/test/libcxx/transitive_includes/cxx14/expected.ext_hash_map
libcxx/test/libcxx/transitive_includes/cxx14/expected.ext_hash_set
libcxx/test/libcxx/transitive_includes/cxx14/expected.filesystem
libcxx/test/libcxx/transitive_includes/cxx14/expected.format
libcxx/test/libcxx/transitive_includes/cxx14/expected.forward_list
libcxx/test/libcxx/transitive_includes/cxx14/expected.fstream
libcxx/test/libcxx/transitive_includes/cxx14/expected.functional
libcxx/test/libcxx/transitive_includes/cxx14/expected.future
libcxx/test/libcxx/transitive_includes/cxx14/expected.initializer_list
libcxx/test/libcxx/transitive_includes/cxx14/expected.iomanip
libcxx/test/libcxx/transitive_includes/cxx14/expected.ios
libcxx/test/libcxx/transitive_includes/cxx14/expected.iosfwd
libcxx/test/libcxx/transitive_includes/cxx14/expected.iostream
libcxx/test/libcxx/transitive_includes/cxx14/expected.istream
libcxx/test/libcxx/transitive_includes/cxx14/expected.iterator
libcxx/test/libcxx/transitive_includes/cxx14/expected.latch
libcxx/test/libcxx/transitive_includes/cxx14/expected.limits
libcxx/test/libcxx/transitive_includes/cxx14/expected.list
libcxx/test/libcxx/transitive_includes/cxx14/expected.locale
libcxx/test/libcxx/transitive_includes/cxx14/expected.map
libcxx/test/libcxx/transitive_includes/cxx14/expected.memory
libcxx/test/libcxx/transitive_includes/cxx14/expected.mutex
libcxx/test/libcxx/transitive_includes/cxx14/expected.new
libcxx/test/libcxx/transitive_includes/cxx14/expected.numbers
libcxx/test/libcxx/transitive_includes/cxx14/expected.numeric
libcxx/test/libcxx/transitive_includes/cxx14/expected.optional
libcxx/test/libcxx/transitive_includes/cxx14/expected.ostream
libcxx/test/libcxx/transitive_includes/cxx14/expected.queue
libcxx/test/libcxx/transitive_includes/cxx14/expected.random
libcxx/test/libcxx/transitive_includes/cxx14/expected.ranges
libcxx/test/libcxx/transitive_includes/cxx14/expected.ratio
libcxx/test/libcxx/transitive_includes/cxx14/expected.regex
libcxx/test/libcxx/transitive_includes/cxx14/expected.scoped_allocator
libcxx/test/libcxx/transitive_includes/cxx14/expected.semaphore
libcxx/test/libcxx/transitive_includes/cxx14/expected.set
libcxx/test/libcxx/transitive_includes/cxx14/expected.shared_mutex
libcxx/test/libcxx/transitive_includes/cxx14/expected.span
libcxx/test/libcxx/transitive_includes/cxx14/expected.sstream
libcxx/test/libcxx/transitive_includes/cxx14/expected.stack
libcxx/test/libcxx/transitive_includes/cxx14/expected.stdexcept
libcxx/test/libcxx/transitive_includes/cxx14/expected.streambuf
libcxx/test/libcxx/transitive_includes/cxx14/expected.string
libcxx/test/libcxx/transitive_includes/cxx14/expected.string_view
libcxx/test/libcxx/transitive_includes/cxx14/expected.strstream
libcxx/test/libcxx/transitive_includes/cxx14/expected.system_error
libcxx/test/libcxx/transitive_includes/cxx14/expected.thread
libcxx/test/libcxx/transitive_includes/cxx14/expected.tuple
libcxx/test/libcxx/transitive_includes/cxx14/expected.type_traits
libcxx/test/libcxx/transitive_includes/cxx14/expected.typeindex
libcxx/test/libcxx/transitive_includes/cxx14/expected.typeinfo
libcxx/test/libcxx/transitive_includes/cxx14/expected.unordered_map
libcxx/test/libcxx/transitive_includes/cxx14/expected.unordered_set
libcxx/test/libcxx/transitive_includes/cxx14/expected.utility
libcxx/test/libcxx/transitive_includes/cxx14/expected.valarray
libcxx/test/libcxx/transitive_includes/cxx14/expected.variant
libcxx/test/libcxx/transitive_includes/cxx14/expected.vector
libcxx/test/libcxx/transitive_includes/cxx14/expected.version
libcxx/test/libcxx/transitive_includes/cxx17/expected.algorithm
libcxx/test/libcxx/transitive_includes/cxx17/expected.any
libcxx/test/libcxx/transitive_includes/cxx17/expected.array
libcxx/test/libcxx/transitive_includes/cxx17/expected.atomic
libcxx/test/libcxx/transitive_includes/cxx17/expected.barrier
libcxx/test/libcxx/transitive_includes/cxx17/expected.bit
libcxx/test/libcxx/transitive_includes/cxx17/expected.bitset
libcxx/test/libcxx/transitive_includes/cxx17/expected.cassert
libcxx/test/libcxx/transitive_includes/cxx17/expected.ccomplex
libcxx/test/libcxx/transitive_includes/cxx17/expected.cctype
libcxx/test/libcxx/transitive_includes/cxx17/expected.cerrno
(466 more files...)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132534.455081.patch
Type: text/x-patch
Size: 90987 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220824/7df662cd/attachment-0001.bin>
More information about the libcxx-commits
mailing list