File tree Expand file tree Collapse file tree 6 files changed +29
-1
lines changed Expand file tree Collapse file tree 6 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -546,7 +546,10 @@ typedef __char32_t char32_t;
546546# define _LIBCPP_DEPRECATED_ (m )
547547# endif
548548
549- # if defined(__DEPRECATED) && __DEPRECATED && !defined(_LIBCPP_DISABLE_DEPRECATION_WARNINGS)
549+ // FIXME: using `#warning` causes diagnostics from system headers which include deprecated headers. This can only be
550+ // enabled again once https://github.com/llvm/llvm-project/pull/168041 (or a similar feature) has landed, since that
551+ // allows suppression in system headers.
552+ # if defined(__DEPRECATED) && __DEPRECATED && !defined(_LIBCPP_DISABLE_DEPRECATION_WARNINGS) && 0
550553# define _LIBCPP_DIAGNOSE_DEPRECATED_HEADERS 1
551554# else
552555# define _LIBCPP_DIAGNOSE_DEPRECATED_HEADERS 0
Original file line number Diff line number Diff line change 1414// UNSUPPORTED: c++03, c++11, c++14
1515// UNSUPPORTED: clang-modules-build
1616
17+ // FIXME: using `#warning` causes diagnostics from system headers which include deprecated headers. This can only be
18+ // enabled again once https://github.com/llvm/llvm-project/pull/168041 (or a similar feature) has landed, since that
19+ // allows suppression in system headers.
20+ // XFAIL: *
21+
1722#include < ccomplex>
1823
1924// expected-warning@ccomplex:* {{<ccomplex> is deprecated in C++17 and removed in C++20. Include <complex> instead.}}
Original file line number Diff line number Diff line change 1414// UNSUPPORTED: c++03, c++11, c++14, c++17
1515// UNSUPPORTED: clang-modules-build
1616
17+ // FIXME: using `#warning` causes diagnostics from system headers which include deprecated headers. This can only be
18+ // enabled again once https://github.com/llvm/llvm-project/pull/168041 (or a similar feature) has landed, since that
19+ // allows suppression in system headers.
20+ // XFAIL: *
21+
1722#include < ciso646>
1823
1924// expected-warning@ciso646:* {{<ciso646> is removed in C++20. Include <version> instead.}}
Original file line number Diff line number Diff line change 1414// UNSUPPORTED: c++03, c++11, c++14
1515// UNSUPPORTED: clang-modules-build
1616
17+ // FIXME: using `#warning` causes diagnostics from system headers which include deprecated headers. This can only be
18+ // enabled again once https://github.com/llvm/llvm-project/pull/168041 (or a similar feature) has landed, since that
19+ // allows suppression in system headers.
20+ // XFAIL: *
21+
1722#include < cstdalign>
1823
1924// expected-warning@cstdalign:* {{<cstdalign> is deprecated in C++17 and removed in C++20.}}
Original file line number Diff line number Diff line change 1414// UNSUPPORTED: c++03, c++11, c++14
1515// UNSUPPORTED: clang-modules-build
1616
17+ // FIXME: using `#warning` causes diagnostics from system headers which include deprecated headers. This can only be
18+ // enabled again once https://github.com/llvm/llvm-project/pull/168041 (or a similar feature) has landed, since that
19+ // allows suppression in system headers.
20+ // XFAIL: *
21+
1722#include < cstdbool>
1823
1924// expected-warning@cstdbool:* {{<cstdbool> is deprecated in C++17 and removed in C++20.}}
Original file line number Diff line number Diff line change 1414// UNSUPPORTED: c++03, c++11, c++14
1515// UNSUPPORTED: clang-modules-build
1616
17+ // FIXME: using `#warning` causes diagnostics from system headers which include deprecated headers. This can only be
18+ // enabled again once https://github.com/llvm/llvm-project/pull/168041 (or a similar feature) has landed, since that
19+ // allows suppression in system headers.
20+ // XFAIL: *
21+
1722#include < ctgmath>
1823
1924// expected-warning@ctgmath:* {{<ctgmath> is deprecated in C++17 and removed in C++20. Include <cmath> and <complex> instead.}}
You can’t perform that action at this time.
0 commit comments