Skip to content

[diagnostics] Emit a a note for optional conversion of raw pointers. … #4443

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
merged 1 commit into from
Aug 22, 2016
Merged

[diagnostics] Emit a a note for optional conversion of raw pointers. … #4443

merged 1 commit into from
Aug 22, 2016

Conversation

atrick
Copy link
Contributor

@atrick atrick commented Aug 21, 2016

master PR #4442

In CSDiag.cpp I previously added a helper, isCastToTypedPointer(), to emit an
diagnostics explaining how to migrate UnsafeRawPointer conversion. This commit
broadens that diagnostic to handle Optional.

rdar:27894255 [3.0 migration] Emit an additional note for conversion

@nkcsgexi Please review for CCC.

…4442)

In CSDiag.cpp I previously added a helper, isCastToTypedPointer(), to emit an
diagnostics explaining how to migrate UnsafeRawPointer conversion. This commit
broadens that diagnostic to handle Optional<UnsafeRawPointer>.

rdar:27894255 [3.0 migration] Emit an additional note for conversion
@nkcsgexi
Copy link
Contributor

LGTM!

@atrick
Copy link
Contributor Author

atrick commented Aug 21, 2016

@swift-ci smoke test.

@tkremenek tkremenek merged commit ae77f6a into swiftlang:swift-3.0-branch Aug 22, 2016
@atrick atrick deleted the rawptr-optional-cast branch September 21, 2016 20:40
kateinoigakukun added a commit that referenced this pull request Aug 31, 2022
[pull] swiftwasm from main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants