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

Overhaul treatment of source locations #205

Merged
merged 1 commit into from
Oct 5, 2024
Merged

Conversation

edsko
Copy link
Collaborator

@edsko edsko commented Oct 5, 2024

We are now much more precise; see discussion of MultiLoc in src/HsBindgen/Clang/Util/SourceLoc/Type.hs for details.

Frustratingly, clang_getSpellingLocation is actually broken prior to llvm-19.1.0 (llvm/llvm-project#28205, llvm/llvm-project#72400). However, the new setup does allow us to call clang_tokenize with the expansion location rather than the spelling location, which is the critical feature we need (similar to the workaround mentioned at llvm/llvm-project#43451).

@edsko edsko force-pushed the edsko/overhaul-locations branch 6 times, most recently from e162566 to 1bcdb83 Compare October 5, 2024 11:10
We are now much more precise; see discussion of `MultiLoc` in
`src/HsBindgen/Clang/Util/SourceLoc/Type.hs` for details.
@edsko edsko force-pushed the edsko/overhaul-locations branch from 1bcdb83 to a33dcd1 Compare October 5, 2024 11:11
@edsko edsko marked this pull request as ready for review October 5, 2024 11:15
@edsko edsko merged commit ccfede5 into main Oct 5, 2024
7 checks passed
@edsko edsko deleted the edsko/overhaul-locations branch October 5, 2024 11:21
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