diff options
author | John Brawn <john.brawn@arm.com> | 2023-03-13 13:27:41 +0000 |
---|---|---|
committer | John Brawn <john.brawn@arm.com> | 2023-05-11 11:47:11 +0100 |
commit | 4d9c936a3e1a647356226c0355a194b94465ad2c (patch) | |
tree | 72189b92b36cf5a9d3ce261e90f5102d1d13718b /libcxx/utils | |
parent | 7cc57c07e36fc6b4d176cebb28a9bbe637772175 (diff) | |
download | llvm-4d9c936a3e1a647356226c0355a194b94465ad2c.tar.gz |
[libc++] Adjust tests using ext/* headers that undefine __DEPRECATED
Several tests undefined __DEPRECATED to avoid warnings as they're
testing the deprecated ext/hash_map. A better way to do this is to use
-Wno-deprecated so it isn't defined in the first place. This prevents
these tests from failing when we give a warning when undefining the
__DEPRECATED macro, as D144654 will do.
For the generated tests however just remove the testing of these
header files, so we don't disable the warning when testing the other
header files.
Differential Revision: https://reviews.llvm.org/D145691
Diffstat (limited to 'libcxx/utils')
-rwxr-xr-x | libcxx/utils/generate_header_tests.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libcxx/utils/generate_header_tests.py b/libcxx/utils/generate_header_tests.py index eacf1f8d8419..db6a17b63931 100755 --- a/libcxx/utils/generate_header_tests.py +++ b/libcxx/utils/generate_header_tests.py @@ -126,13 +126,11 @@ def main(): toplevel_headers = sorted(str(p.relative_to(include)) for p in include.glob('[a-z]*') if is_header(p)) experimental_headers = sorted(str(p.relative_to(include)) for p in include.glob('experimental/[a-z]*') if is_header(p)) - extended_headers = sorted(str(p.relative_to(include)) for p in include.glob('ext/[a-z]*') if is_header(p)) - public_headers = toplevel_headers + experimental_headers + extended_headers + public_headers = toplevel_headers + experimental_headers private_headers = sorted(str(p.relative_to(include)) for p in include.rglob('*') if is_header(p) and str(p.relative_to(include)).startswith('__') and not p.name.startswith('pstl')) variables = { 'toplevel_headers': toplevel_headers, 'experimental_headers': experimental_headers, - 'extended_headers': extended_headers, 'public_headers': public_headers, 'private_headers': private_headers, 'header_restrictions': header_restrictions, |