-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Map
int
to core::ffi::c_int
(also for most other builtin C++ types).
This CL provides mappings for most types under `core::ffi`, except for: * Types like `core::ffi::ptrdiff_t`, because they depend on an experimental feature: rust-lang/rust#88345 * `core::ffi::c_char` because of b/276931370 and because continuing translating `char` to `u8` reduces the amount of cascading changes in this CL (e.g. changes to `crubit/support/cc_std/string_view.rs`). Note that some other `clang/AST/BuiltinTypes.def` types like `char16_t` don't have an equivelent under `core::ffi`. This CL doesn't change how such types are handled (some of them are already covered by `rs_bindings_from_cc/type_map.cc`). PiperOrigin-RevId: 533279988
- Loading branch information
1 parent
f164e03
commit 460e427
Showing
31 changed files
with
498 additions
and
418 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.