-
Notifications
You must be signed in to change notification settings - Fork 13.6k
[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
Merged
frederick-vs-ja
merged 26 commits into
llvm:main
from
frederick-vs-ja:cxx20-removed-headers
Oct 30, 2024
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
cd7e179
[libc++] Deprecate and remove meaningless `<cxxx>` headers
frederick-vs-ja a7fdda0
[libc++] Add missed `<cstdalign>` and `<stdalign.h>` headers
frederick-vs-ja fdf253d
[libc++] Deprecate and remove `<cstdalign>`
frederick-vs-ja 81ea61b
Try to fix undeprecation/deprecation verification
frederick-vs-ja 887574c
Try to fix generating scripts
frederick-vs-ja 18c7e9d
More formatting
frederick-vs-ja b68ee90
Reorganize inclusion per P0063R3 to reduce deprecation warnings
frederick-vs-ja 70d91b7
Delete unneeded `<stdalign.h>`
frederick-vs-ja 8360774
Escape hatch for `<ciso646>`
frederick-vs-ja 9c4337c
Fix some errors for `<ctgmath>` and `<tgmath.h>`
frederick-vs-ja 1299c89
Revert "Delete unneeded `<stdalign.h>`"
frederick-vs-ja ca47422
Adjust transitive_includes files
frederick-vs-ja 27abb5f
Merge branch 'main' into cxx20-removed-headers
frederick-vs-ja 7d05faa
Try to fix deprecation suppressing/verification
frederick-vs-ja 53da492
Try to fix deprecation suppressing/verification, take 2
frederick-vs-ja 42d680e
Skip modules-build
frederick-vs-ja 2699c51
Remove libc++'s wrapping `<stdalign.h>`
frederick-vs-ja 6372fce
Adjust warning messages
frederick-vs-ja 72180f7
Revert some changes in documentations
frederick-vs-ja 8588d52
Address review comments and try to fix CI failures
frederick-vs-ja 6c4b524
Merge branch 'main' into cxx20-removed-headers
frederick-vs-ja cb71036
Fix merge and format errors
frederick-vs-ja cf9e2e2
Add missing cstdalign to c header files
ldionne aa83d21
Restore to attribute-based method
frederick-vs-ja 2f7ab3b
Reform deprecation messages and add more comments
frederick-vs-ja 42214df
Fix `#else if`
frederick-vs-ja File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -912,6 +912,7 @@ set(files | |
coroutine | ||
csetjmp | ||
csignal | ||
cstdalign | ||
cstdarg | ||
cstdbool | ||
cstddef | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// -*- 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 >= 20 | ||
|
||
using __standard_header_cstdalign _LIBCPP_DEPRECATED_("removed in C++20.") = void; | ||
using __use_standard_header_cstdalign = __standard_header_cstdalign; | ||
|
||
#elif _LIBCPP_STD_VER >= 17 | ||
|
||
using __standard_header_cstdalign _LIBCPP_DEPRECATED = void; | ||
using __use_standard_header_cstdalign = __standard_header_cstdalign; | ||
|
||
#endif | ||
|
||
#endif // _LIBCPP_CSTDALIGN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.