Skip to content

Expose BitOffset from the clang AST - #1

Merged
craigwarne-rw merged 3 commits into
mainfrom
bit-offset
Jan 28, 2026
Merged

Expose BitOffset from the clang AST#1
craigwarne-rw merged 3 commits into
mainfrom
bit-offset

Conversation

@craigwarne-rw

Copy link
Copy Markdown

Currently we only get an offset rounded down to the nearest byte, which is unusable in the case of bitfields.
Add BitOffset property, and update Offset to be a getter that simply does the nearest-byte rounding for normal byte-aligned use cases.

@craigwarne-rw
craigwarne-rw merged commit 1816d2e into main Jan 28, 2026
2 checks passed
@craigwarne-rw
craigwarne-rw deleted the bit-offset branch January 28, 2026 22:06
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