Skip to content

[stable/20240723] [ExtractAPI] merge anon declarators even if they're array types #9911

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
Jan 31, 2025

Conversation

QuietMisdreavus
Copy link

Cherry-pick of llvm#120801

Resolves rdar://140210765

ExtractAPI currently checks declarator decls for embedded tag decls so that it can fold in anonymous tag decls as necessary. However, this check appears to be tricked when the field decl specifies an array of this embedded anonymous tag decl. This PR adds an extra check to ExtractAPIVisitorBase::maybeMergeWithAnonymousTag() to poke inside array types for a potential anonymous tag decl to merge, so that it doesn't erroneously create symbols with empty names.

@QuietMisdreavus QuietMisdreavus requested a review from a team as a code owner January 29, 2025 20:38
@QuietMisdreavus
Copy link
Author

@swift-ci Please smoke test

@QuietMisdreavus
Copy link
Author

@swift-ci Please test Linux

@QuietMisdreavus
Copy link
Author

@swift-ci Please test macOS

1 similar comment
@QuietMisdreavus
Copy link
Author

@swift-ci Please test macOS

@QuietMisdreavus QuietMisdreavus merged commit a00f97e into stable/20240723 Jan 31, 2025
3 checks passed
@QuietMisdreavus QuietMisdreavus deleted the vgm/unnamed-records branch January 31, 2025 19:19
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