[libc++] Divorce the std Lit feature from the -std=XXX compiler flag
authorLouis Dionne <ldionne.2@gmail.com>
Fri, 9 Apr 2021 15:41:28 +0000 (11:41 -0400)
committerLouis Dionne <ldionne.2@gmail.com>
Mon, 12 Apr 2021 15:55:39 +0000 (11:55 -0400)
commit8508b1c133f6dea558fd62f73cf333bdec809026
tree6f3b7cf3f95bd2d041bf109728b378052fe435e6
parent9f64e6ce768f2ba083c59ca0b61e107561ac86c6
[libc++] Divorce the std Lit feature from the -std=XXX compiler flag

After this patch, we can use `--param std=c++20` even if the compiler only
supports -std=c++2a. The test suite will handle that for us. The only Lit
feature that isn't fully baked will always be the "in development" one,
since we don't know exactly what year the standard will be ratified in.

This is another take on https://reviews.llvm.org/D99789.

Differential Revision: https://reviews.llvm.org/D100210
14 files changed:
libcxx/cmake/caches/Generic-cxx20.cmake
libcxx/docs/TestingLibcxx.rst
libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/sized_delete_array11.pass.cpp
libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete11.pass.cpp
libcxx/test/std/strings/basic.string/string.contains/contains.char.pass.cpp
libcxx/test/std/strings/basic.string/string.contains/contains.ptr.pass.cpp
libcxx/test/std/strings/basic.string/string.contains/contains.string_view.pass.cpp
libcxx/test/std/strings/string.view/string.view.template/contains.char.pass.cpp
libcxx/test/std/strings/string.view/string.view.template/contains.ptr.pass.cpp
libcxx/test/std/strings/string.view/string.view.template/contains.string_view.pass.cpp
libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_scoped_enum.pass.cpp
libcxx/test/std/utilities/utility/utility.underlying/to_underlying.pass.cpp
libcxx/test/std/utilities/utility/utility.underlying/to_underlying.verify.cpp
libcxx/utils/libcxx/test/params.py