Skip to content

[APIGen] Don't record declarations from clang header files #81086

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

zixu-w
Copy link
Contributor

@zixu-w zixu-w commented Apr 25, 2025

When Swift visits an ExtensionDecl from an @objc @implementation extension, it fetches the implemented Objective-C interface declaration from the header file and adds to the visitor.
We don't want these API records from APIGenRecorder for Swift API descriptor, because we cannot correctly reason about their API access as they depend on the header group which Swift doesn't know about.

Resolves rdar://148943382

When Swift visits an `ExtensionDecl` from an `@objc @implementation`
extension, it fetches the implemented Objective-C interface declaration
from the header file and adds to the visitor.
We don't want these API records from `APIGenRecorder` for Swift API
descriptor, because we cannot correctly reason about their API access as
they depend on the header group which Swift doesn't know about.

Resolves rdar://148943382
@zixu-w zixu-w requested review from tshortli and cyndyishida April 25, 2025 01:22
@zixu-w zixu-w requested a review from rjmccall as a code owner April 25, 2025 01:22
@zixu-w
Copy link
Contributor Author

zixu-w commented Apr 28, 2025

@swift-ci please 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.

2 participants