summaryrefslogtreecommitdiff
path: root/bindgen/clang.rs
AgeCommit message (Collapse)Author
2022-10-22clang: Detect anonymous items explicitly, rather than relying on empty names.Emilio Cobos Álvarez
In Clang 16, anonymous items may return names like `(anonymous union at ..)` rather than empty names. The right way to detect them is using clang_Cursor_isAnonymous. Fixes #2312 Closes #2316 Co-Authored-by: Patrick Walton <pcwalton@fb.com>
2022-10-16ci: clippy fixes.Emilio Cobos Álvarez
The allowed casts are because c_longlong etc aren't guaranteed to map to i64 / etc. I believe c_double maps to f64 in all platforms tho.
2022-10-07Implement `Clone` for `Builder`Christian Poveda
This is done by moving all the remaining `Builder` state into `BindgenOptions` so any internal logic that affects `Builder` state only runs once the builder is consumed by `Builder::generate`: - move `input_headers` to `BindgenOptions`. - move `input_header_contents` to `BindgenOptions`. - derive `Clone` for `Builder`.
2022-10-04split the repo into a workspaceChristian Poveda
remove `clap` dependency :tada: update the book installation instructions