diff options
author | Eric Fiselier <eric@efcs.ca> | 2019-04-24 17:54:25 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2019-04-24 17:54:25 +0000 |
commit | 2fc5a786beaba1fbac1de65d78889d72b667f2d3 (patch) | |
tree | a3136cb21a5ba3f8ce402361552b79115a8d7691 /libcxx/utils | |
parent | abdb816b776cc43a1f318c84d26e1fe5840da073 (diff) | |
download | bcm5719-llvm-2fc5a786beaba1fbac1de65d78889d72b667f2d3.tar.gz bcm5719-llvm-2fc5a786beaba1fbac1de65d78889d72b667f2d3.zip |
Add std::is_constant_evaluated.
Clang recently added __builtin_is_constant_evaluated() and GCC 9.0
has it as well.
This patch adds support for it in libc++.
llvm-svn: 359119
Diffstat (limited to 'libcxx/utils')
-rwxr-xr-x | libcxx/utils/generate_feature_test_macro_components.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libcxx/utils/generate_feature_test_macro_components.py b/libcxx/utils/generate_feature_test_macro_components.py index c11846ec6e1..ed015876aef 100755 --- a/libcxx/utils/generate_feature_test_macro_components.py +++ b/libcxx/utils/generate_feature_test_macro_components.py @@ -525,7 +525,8 @@ feature_test_macros = sorted([ add_version_header(x) for x in [ "c++2a": 201811L, }, "headers": ["type_traits"], - "unimplemented": True, + "depends": "TEST_HAS_BUILTIN(__builtin_is_constant_evaluated) || TEST_GCC_VER >= 900", + "internal_depends": "!defined(_LIBCPP_HAS_NO_BUILTIN_IS_CONSTANT_EVALUATED)", }, {"name": "__cpp_lib_list_remove_return_type", "values": { |