-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Migrate llvm::Optional to std::optional #71368
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
Conversation
3654584
to
81e9eaf
Compare
@swift-ci please test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems pretty mechanical. Thank you for clang-formatting
the patch!
81e9eaf
to
e3026dc
Compare
@swift-ci please test |
0d1781a
to
df0f936
Compare
@swift-ci please test |
df0f936
to
a29341e
Compare
(On Windows) looks like maybe a missing
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty mechanical. I've skimmed over most of it, but what I looked at all seemed good. There's a Windows issue, but that looks like a missing <optional>
somewhere (probably some difference in the C++ library that causes it to be pulled in on the other platforms but not on the version we're using on Windows).
I'll be especially pleased to see the back of llvm::None
as that causes problems adding None
cases to enums.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a big ol' diff. I didn't read it all, but assuming it's all s/llvm::Optional/std::optional/
then I'm happy.
Yeah, MSVC doesn't end up pulling in
Heh. So just to be clear - this still doesn't remove it from a bunch of directories, namely
If only. Unfortunately:
But... close enough :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Went through most of the Sema.
070cd58
to
291ff75
Compare
@swift-ci please test |
d8684e6
to
f8301e6
Compare
0744069
to
1c43212
Compare
@swift-ci please test |
1c43212
to
01938a8
Compare
@swift-ci please test |
01938a8
to
d30a3e5
Compare
@swift-ci please test |
d30a3e5
to
792d103
Compare
@swift-ci please test |
@swift-ci please test |
792d103
to
5257121
Compare
@swift-ci please test |
LLVM has removed llvm::Optional, move over to std::optional. Also clang-format to fix up all the renamed #includes.
@swift-ci please smoke test |
5257121
to
ef8825b
Compare
@swift-ci please test Windows platform |
LLVM has removed llvm::Optional, move over to std::optional. Also clang-format to fix up all the renamed #includes.