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

Implement textDocument/switchSourceheader #976

Merged
merged 1 commit into from
Nov 9, 2024
Merged

Conversation

MaskRay
Copy link
Owner

@MaskRay MaskRay commented Nov 6, 2024

No description provided.

@MaskRay MaskRay force-pushed the switchSourceHeader branch 2 times, most recently from 5ad7ae5 to b4fcd28 Compare November 9, 2024 04:51
When the current file is X.cc, there might be multiple X.h.
Use a heuristic to find the best X.h.

Vote for each interesting symbol's definitions (for header) or
declarations (for non-header). Select the file with the most votes.

If `file_id2cnt` is empty, use a simpler heuristic.
@MaskRay MaskRay force-pushed the switchSourceHeader branch from b4fcd28 to 664f952 Compare November 9, 2024 04:56
@MaskRay MaskRay merged commit 664f952 into master Nov 9, 2024
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