Skip to content

Conversation

@fw-immunant
Copy link
Contributor

Currently this is just the C-side implementation; I'll add commits moving the impl of Rust splitting and merging from the crisp repository tomorrow.

thedataking and others added 3 commits November 25, 2025 16:34
Also add bare-bones test which can be run like so:

```
    uvx pytest tests/test_postprocess.py
```

as long as `uvx` is in path.
Clang's SourceRange ends at the beginning of the final token, but this is not useful if we want to look at every character of a declaration, as we may when considering the spelling of the corresponding C definition
@fw-immunant fw-immunant force-pushed the fw/c2rust-postprocess-split-merge branch from 16f6f85 to 4ffc28d Compare November 26, 2025 02:11
@ahomescu
Copy link
Contributor

Not against this approach per se, just wanted to bring up the alternative approach of using the existing c2rust::src_loc annotations for this. Do we not want to use those?

@thedataking thedataking force-pushed the feature/c2rust-postprocess-take-two branch 2 times, most recently from d2cf708 to 5b517cb Compare November 27, 2025 01:40
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.

4 participants