-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[libc++] Deprecate and remove meaningless <cxxx> headers
#111615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 19 commits
cd7e179
a7fdda0
fdf253d
81ea61b
887574c
18c7e9d
b68ee90
70d91b7
8360774
9c4337c
1299c89
ca47422
27abb5f
7d05faa
53da492
42d680e
2699c51
6372fce
72180f7
8588d52
6c4b524
cb71036
cf9e2e2
aa83d21
2f7ab3b
42214df
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -911,6 +911,7 @@ set(files | |
| coroutine | ||
| csetjmp | ||
| csignal | ||
| cstdalign | ||
| cstdarg | ||
| cstdbool | ||
| cstddef | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,4 +23,12 @@ | |
| # pragma GCC system_header | ||
| #endif | ||
|
|
||
| #if _LIBCPP_STD_VER >= 17 && defined(__DEPRECATED) && __DEPRECATED && !defined(_LIBCPP_DISABLE_DEPRECATION_WARNINGS) | ||
|
||
| # if _LIBCPP_STD_VER >= 20 | ||
| # warning <ccomplex> is removed in C++20. Include <complex> instead. | ||
| # else | ||
| # warning <ccomplex> is deprecated. Include <complex> instead. | ||
| # endif | ||
| #endif | ||
|
|
||
| #endif // _LIBCPP_CCOMPLEX | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| // -*- C++ -*- | ||
| //===----------------------------------------------------------------------===// | ||
| // | ||
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
| // See https://llvm.org/LICENSE.txt for license information. | ||
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
| // | ||
| //===----------------------------------------------------------------------===// | ||
|
|
||
| #ifndef _LIBCPP_CSTDALIGN | ||
| #define _LIBCPP_CSTDALIGN | ||
|
|
||
| /* | ||
| cstdalign synopsis | ||
|
|
||
| Macros: | ||
|
|
||
| __alignas_is_defined | ||
| __alignof_is_defined | ||
|
|
||
| */ | ||
|
|
||
| #include <__config> | ||
frederick-vs-ja marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| // <stdalign.h> is not provided by libc++ | ||
| #if __has_include(<stdalign.h>) | ||
| # include <stdalign.h> | ||
| # ifdef _LIBCPP_STDALIGN_H | ||
| # error "If libc++ starts defining <stdalign.h>, the __has_include check should move to libc++'s <stdalign.h>" | ||
| # endif | ||
| #endif | ||
|
|
||
| #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) | ||
| # pragma GCC system_header | ||
| #endif | ||
|
|
||
| #undef __alignas_is_defined | ||
| #define __alignas_is_defined 1 | ||
|
|
||
| #undef __alignof_is_defined | ||
| #define __alignof_is_defined 1 | ||
|
|
||
| #if _LIBCPP_STD_VER >= 17 && defined(__DEPRECATED) && __DEPRECATED && !defined(_LIBCPP_DISABLE_DEPRECATION_WARNINGS) | ||
| # if _LIBCPP_STD_VER >= 20 | ||
| # warning <cstdalign> is removed in C++20. | ||
| # else | ||
| # warning <cstdalign> is deprecated. | ||
| # endif | ||
| #endif | ||
|
|
||
| #endif // _LIBCPP_CSTDALIGN | ||
Uh oh!
There was an error while loading. Please reload this page.