bazel /
crubit /
63f10da0f57dd7e3ab17035bbfd8b549acadcc88 Lifetime elision for implicitly defaulted constructors.
Implicitly defaulted constructors return null from their
`getTypeSourceInfo()`, but we still need lifetime elision (because
without lifetimes `rs_bindings_from_cc` won't use Rust references in the
generated bindings and constructors won't be translated into
Default::default, etc).
To provide lifetime elision in this scenario, this CL tweaks
lifetime_annotations.cc to work with `QualType` rather than `TypeLoc`.
PiperOrigin-RevId: 424360966
17 files changed
tree: 8355d5c5761ab51e24cd055b51346a344a319cfd
- lifetime_annotations/
- rs_bindings_from_cc/
- CODE_OF_CONDUCT
- CONTRIBUTING
- LICENSE
- README.md
README.md
Crubit: C++/Rust Bidirectional Interop Tool
Extremely experimental interop tooling for C++ and Rust.
Please don‘t use, this is an experiment and we don’t yet know where will it take us. There will be breaking changes without warning. Unfortunately, we can't take contributions at this point.