Skip to content

Commit

Permalink
Field visibility callback (#2525)
Browse files Browse the repository at this point in the history
* Add test for respect-cxx-access-specs and visibility annotations

* Use default visibility for padding fields

* Compute visibility of bitfield unit based on actual field visibility

* Add callback to override field visibility

---------

Co-authored-by: Jethro Beekman <[email protected]>
  • Loading branch information
jethrogb and Jethro Beekman authored Jun 5, 2023
1 parent 05ebcac commit 4faa366
Show file tree
Hide file tree
Showing 12 changed files with 662 additions and 65 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

166 changes: 166 additions & 0 deletions bindgen-tests/tests/expectations/tests/field-visibility-callback.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

179 changes: 179 additions & 0 deletions bindgen-tests/tests/expectations/tests/field-visibility.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4faa366

Please sign in to comment.