Skip to content

Clang Importer Diagnostics Pitch #39655

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

Closed
wants to merge 4 commits into from

Conversation

NuriAmari
Copy link
Contributor

@NuriAmari NuriAmari commented Oct 8, 2021

This is a proof of concept for improved diagnostics in the ClangImporter. Included in this diff are new diagnostics for unsupported C types when using in struct fields declarations, or function signatures.

This PR is meant for demonstration purposes and to accompany this pitch: https://forums.swift.org/t/pitch-improved-clangimporter-diagnostics/52687

Nuri Amari added 4 commits October 8, 2021 12:56
Add infrastructure simplifying the passing of diagnostics and
generation of stubs to replace unimported Clang nodes.
Add diagnostics reporting when any of the following unsupported types
are using in a C function signature:

- Atomic
- Clang Matrix
- Clang ExInt
- Complex
- OpenCL Pipe
Add diagnostics and a replacement stub on any C struct fields
using any of the following unsupported types:

- Atomic
- Clang Matrix
- Clang ExInt
- Complex
- OpenCL Pipe
@NuriAmari
Copy link
Contributor Author

Work continued here: #39923

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