Skip to content

Don’t use the best local declaration when jumping to definition of a C function #989

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

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Dec 6, 2023

For non-Swift symbols, we need to perform an index lookup because the best local declaration will point to a header file but jump-to-definition should prefer the implementation (there's the declaration request to jump to the function's declaration).

rdar://119243893

…C function

For non-Swift symbols, we need to perform an index lookup because the best local declaration will point to a header file but jump-to-definition should prefer the implementation (there's the declaration request to jump to the function's declaration).

rdar://119243893
@ahoppen ahoppen requested a review from bnbarham December 6, 2023 19:09
@ahoppen ahoppen requested a review from benlangmuir as a code owner December 6, 2023 19:09
@ahoppen
Copy link
Member Author

ahoppen commented Dec 6, 2023

@swift-ci Please test

@ahoppen ahoppen merged commit 17eca18 into swiftlang:main Dec 7, 2023
@ahoppen ahoppen deleted the ahoppen/dont-use-local-loc-for-c-definition branch December 7, 2023 01:39
ahoppen added a commit to ahoppen/swift-integration-tests that referenced this pull request Dec 11, 2023
The underlying issue of rdar://119243893 has been fixed by swiftlang/sourcekit-lsp#989
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