Skip to content

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

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 21, 2016
Merged

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

merged 1 commit into from
Aug 21, 2016

Conversation

atrick
Copy link
Contributor

@atrick atrick commented Aug 21, 2016

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

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
@atrick
Copy link
Contributor Author

atrick commented Aug 21, 2016

@swift-ci smoke test.

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.

1 participant