[libcxx-commits] [PATCH] D99789: [libc++] Add fallback standard flags and normalize corresponding feature.

Marek Kurdej via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Apr 2 00:17:53 PDT 2021


curdeius created this revision.
curdeius added reviewers: ldionne, Quuxplusone.
Herald added a subscriber: arichardson.
curdeius requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Using std=c++2a is now equivalent to std=c++20 (if both flags are supported by the compiler).
Features use non-fallback standard names (c++20 instead of c++2a).
E.g. using `--param=std=c++2a` will detect feature `c++20`.
Note: you still cannot pass `--param=std=c++23` if the compiler doesn't support `-std=c++23`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D99789

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99789.334909.patch
Type: text/x-patch
Size: 8477 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210402/483818af/attachment-0001.bin>


More information about the libcxx-commits mailing list