Skip to content

Discard non-indexed relations instead of entire references. #79577

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
Feb 25, 2025

Conversation

dylansturg
Copy link
Contributor

References for function calls where there would normally be a received-by relationship were being discarded. This happened when the receiver type is a non-indexed type, e.g. a private type in a system framework. The function call could be public or defined in any module though, so discarding it entirely because of the receiver type is not desirable.

Follow up to refine the behavior of previous commit.

Copy link
Member

@ahoppen ahoppen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Looks good to me.

@ahoppen
Copy link
Member

ahoppen commented Feb 24, 2025

@swift-ci Please test

@dylansturg
Copy link
Contributor Author

After chatting with @bnbarham, I'm going to make a couple changes:

  • Change the implementation of addRelation to allow continuing for non-indexed symbols.
  • Remove the dependency on SwiftUI in the test case.

I'll comment when that's ready.

@dylansturg dylansturg force-pushed the index-missing-symbols branch from bcfbc3f to 51b8222 Compare February 24, 2025 19:26
References for function calls where there would normally be a received-by relationship were being discarded. This happened when the receiver type is a non-indexed type, e.g. a private type in a system framework. The function call could be public or defined in any module though, so discarding it entirely because of the receiver type is not desirable.

Follow up to refine the behavior of [previous commit](swiftlang@b65d8c2).
@dylansturg dylansturg force-pushed the index-missing-symbols branch from 51b8222 to d21b7d6 Compare February 24, 2025 19:30
@dylansturg
Copy link
Contributor Author

Please take another look. I've made the described changes, and the tests for indexing pass for me.

Thanks!

@ahoppen
Copy link
Member

ahoppen commented Feb 24, 2025

@swift-ci Please smoke test

Copy link
Contributor

@bnbarham bnbarham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @dylansturg!

Copy link
Contributor

@hamishknight hamishknight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@allevato
Copy link
Member

@swift-ci please smoke test macOS platform

@allevato allevato merged commit 5ba008a into swiftlang:main Feb 25, 2025
3 checks passed
@dylansturg dylansturg deleted the index-missing-symbols branch February 25, 2025 18:47
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.

5 participants