diff options
author | James Y Knight <jyknight@google.com> | 2023-01-11 15:53:03 -0500 |
---|---|---|
committer | James Y Knight <jyknight@google.com> | 2023-01-11 16:01:30 -0500 |
commit | 73d94b19161355d06f20678d628555719eebbdcc (patch) | |
tree | 25102b90e70bb4452b7a9966cfdc89d6ece72243 /libcxx/utils/generate_feature_test_macro_components.py | |
parent | 0d91b05052140f5ae3ebbaae36304e5d1eb2bb58 (diff) | |
download | llvm-73d94b19161355d06f20678d628555719eebbdcc.tar.gz |
[Libcxx] Add <source_location> header.
This requires the __builtin_source_location() builtin, as implemented
by GCC and Clang.
Fixes https://github.com/llvm/llvm-project/issues/56363
Differential Revision: https://reviews.llvm.org/D120634
Diffstat (limited to 'libcxx/utils/generate_feature_test_macro_components.py')
-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 c09ea3e980b8..05a02b0150c6 100755 --- a/libcxx/utils/generate_feature_test_macro_components.py +++ b/libcxx/utils/generate_feature_test_macro_components.py @@ -644,7 +644,8 @@ feature_test_macros = [ add_version_header(x) for x in [ "name": "__cpp_lib_source_location", "values": { "c++20": 201907 }, "headers": ["source_location"], - "unimplemented": True, + "test_suite_guard": "__has_builtin(__builtin_source_location)", + "libcxx_guard": "__has_builtin(__builtin_source_location)", }, { "name": "__cpp_lib_span", "values": { "c++20": 202002 }, |