Skip to content
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

Generate errors #357

Merged
merged 2 commits into from
Apr 13, 2021
Merged

Generate errors #357

merged 2 commits into from
Apr 13, 2021

Conversation

adetaylor
Copy link
Collaborator

@adetaylor adetaylor commented Apr 10, 2021

Improves #34.

There are some APIs which autocxx can't generate because they are
unsupported C++ features.

Previously, the codegen phase reported an error to stderr.
Now, it does that, and also adds a ZST into the generated
code with a doc comment indicating the trouble. The idea is that
those using rust-analyzer or some other autocompletion system
will see an error message indicating the problem.

At present, this change does not attempt to add impl blocks
for problematic methods. A future change may do that.
This adds a framework to examine the Rust code produced
and adds a test to check we're producing an error symbol
for writable static data (not yet supported by autocxx).
@adetaylor adetaylor merged commit a63f5f5 into main Apr 13, 2021
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