Skip to content

[5.10] ExtractAPI: use zero-based indices for line/column in symbol graph #7824

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

QuietMisdreavus
Copy link

Other implementations of the symbol graph format use zero-based indices for source locations, which causes problems when combined with clang's current one-based indices. This commit sets ExtractAPI's symbol graph output to use zero-based indices to align with other implementations.

Cherry-picked from llvm#71753.

rdar://107639783

Other implementations of the symbol graph format use zero-based indices
for source locations, which causes problems when combined with clang's
current one-based indices. This commit sets ExtractAPI's symbol graph
output to use zero-based indices to align with other implementations.

Cherry-picked from llvm#71753.

rdar://107639783
@QuietMisdreavus QuietMisdreavus changed the title ExtractAPI: use zero-based indices for line/column in symbol graph [5.10] ExtractAPI: use zero-based indices for line/column in symbol graph Nov 28, 2023
@QuietMisdreavus
Copy link
Author

@swift-ci Please test

@QuietMisdreavus
Copy link
Author

@swift-ci Please test macOS

@QuietMisdreavus
Copy link
Author

@swift-ci Please test Windows

@QuietMisdreavus QuietMisdreavus merged commit 16fb00b into swift/release/5.10 Nov 30, 2023
@QuietMisdreavus QuietMisdreavus deleted the QuietMisdreavus/5.10/linecol-offset branch November 30, 2023 16:35
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