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

clangparser: mark incomplete arrays as incomplete without failing #441

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

JakeHillion
Copy link
Contributor

@JakeHillion JakeHillion commented Dec 20, 2023

clangparser: mark incomplete arrays as incomplete without failing

Attempting to complete a type which can't be completed currently fails oilgen.
For incomplete arrays, which we know are not possible to complete, return false
deliberately.

requireCompleteType likely needs to not fail in all cases in the future. For
now this works.

Test plan:

  • std::unique_ptr<long[]> used to fail the generation. Now it can
    successfully codegen.

Attempting to complete a type which can't be completed currently fails oilgen.
For incomplete arrays, which we know are not possible to complete, return false
deliberately.

`requireCompleteType` likely needs to not fail in all cases in the future. For
now this works.

Test plan:
- `std::unique_ptr<long[]>` used to fail the generation. Now it can
  successfully codegen.
@JakeHillion JakeHillion merged commit beb404e into facebookexperimental:main Dec 20, 2023
5 checks passed
@JakeHillion JakeHillion deleted the pr441 branch January 4, 2024 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants