Home
last modified time | relevance | path

Searched defs:BindgenContext (Results 1 – 25 of 26) sorted by relevance

12

/aosp_15_r20/external/rust/android-crates-io/crates/bindgen/codegen/
Dmod.rs94 ctx: &BindgenContext, in top_level_path()
109 ctx: &BindgenContext, in root_import()
147 ctx: &BindgenContext, in derives_of_item()
414 ctx: &BindgenContext, in with_implicit_template_params()
422 ctx: &BindgenContext, in with_implicit_template_params()
481 ctx: &BindgenContext, in codegen()
490 ctx: &BindgenContext, in process_before_codegen()
524 ctx: &BindgenContext, in codegen()
556 ctx: &BindgenContext, in codegen()
654 ctx: &BindgenContext, in codegen()
[all …]
Dhelpers.rs80 pub(crate) fn blob(ctx: &BindgenContext, layout: Layout) -> syn::Type { in blob()
106 ctx: &BindgenContext, in integer_type()
113 pub(crate) fn bitfield_unit(ctx: &BindgenContext, layout: Layout) -> syn::Type { in bitfield_unit()
151 pub(crate) fn raw_type(ctx: &BindgenContext, name: &str) -> syn::Type { in raw_type()
171 ctx: &BindgenContext, in int_kind_rust_type()
226 ctx: &BindgenContext, in float_kind_rust_type()
300 ctx: &BindgenContext, in float_expr()
335 ctx: &BindgenContext, in arguments_from_signature()
Dserialize.rs26 ctx: &BindgenContext, in serialize()
38 ctx: &BindgenContext, in serialize()
60 ctx: &BindgenContext, in serialize()
206 ctx: &BindgenContext, in serialize()
221 ctx: &BindgenContext, in serialize()
403 ctx: &BindgenContext, in serialize_args()
425 F: FnMut(I::Item, &BindgenContext, &mut W) -> Result<(), CodegenError>, in serialize_sep()
430 ctx: &BindgenContext, in serialize_sep()
Dimpl_debug.rs7 ctx: &BindgenContext, in gen_debug_impl()
62 ctx: &BindgenContext, in impl_debug()
72 ctx: &BindgenContext, in impl_debug()
88 ctx: &BindgenContext, in impl_debug()
117 ctx: &BindgenContext, in impl_debug()
Dimpl_partialeq.rs9 ctx: &BindgenContext, in gen_partialeq_impl()
74 ctx: &BindgenContext, in gen_field()
Ddyngen.rs79 ctx: &BindgenContext, in get_tokens()
138 ctx: &BindgenContext, in push()
/aosp_15_r20/external/rust/android-crates-io/crates/bindgen/ir/
Dcontext.rs310 pub(crate) struct BindgenContext { struct
312 items: Vec<Option<Item>>,
316 types: HashMap<TypeKey, TypeId>,
320 type_params: HashMap<clang::Cursor, TypeId>,
323 modules: HashMap<Cursor, ModuleId>,
326 root_module: ModuleId,
329 current_module: ModuleId,
337 semantic_parents: HashMap<clang::Cursor, ItemId>,
350 currently_parsed_types: Vec<PartialType>,
357 parsed_macros: StdHashMap<Vec<u8>, cexpr::expr::EvalResult>,
[all …]
Ditem.rs64 ctx: &BindgenContext, in namespace_aware_canonical_path()
79 fn is_opaque(&self, ctx: &BindgenContext, extra: &Self::Extra) -> bool; in is_opaque()
128 fn new<Id: Into<ItemId>>(ctx: &'a BindgenContext, id: Id) -> Self { in new()
164 ctx: &BindgenContext, in as_template_param()
176 ctx: &BindgenContext, in as_template_param()
188 ctx: &BindgenContext, in as_template_param()
219 ctx: &BindgenContext, in namespace_aware_canonical_path()
258 fn trace<T>(&self, ctx: &BindgenContext, tracer: &mut T, extra: &()) in trace()
269 fn trace<T>(&self, ctx: &BindgenContext, tracer: &mut T, _extra: &()) in trace()
456 ctx: &mut BindgenContext, in new_opaque_type()
[all …]
Dcomp.rs215 fn trace<T>(&self, _: &BindgenContext, tracer: &mut T, _: &()) in trace()
235 ctx: &BindgenContext, in dot_attributes()
275 _ctx: &BindgenContext, in dot_attributes()
293 _ctx: &BindgenContext, in dot_attributes()
481 ctx: &BindgenContext, in raw_fields_to_fields_and_bitfield_units()
536 ctx: &BindgenContext, in bitfields_to_allocation_units()
718 fn compute_bitfield_units(&mut self, ctx: &BindgenContext, packed: bool) { in compute_bitfield_units()
741 fn deanonymize_fields(&mut self, ctx: &BindgenContext, methods: &[Method]) { in deanonymize_fields()
753 ctx: &BindgenContext, in deanonymize_fields()
833 fn trace<T>(&self, context: &BindgenContext, tracer: &mut T, _: &()) in trace()
[all …]
Dty.rs191 ctx: &BindgenContext, in is_incomplete_array()
258 ctx: &BindgenContext, in sanitized_name()
281 ctx: &'tr BindgenContext, in canonical_type()
294 ctx: &'tr BindgenContext, in safe_canonical_type()
348 fn is_opaque(&self, ctx: &BindgenContext, item: &Item) -> bool { in is_opaque()
366 ctx: &BindgenContext, in as_template_param()
378 ctx: &BindgenContext, in as_template_param()
392 ctx: &BindgenContext, in dot_attributes()
421 ctx: &BindgenContext, in dot_attributes()
677 ctx: &mut BindgenContext, in from_clang_ty()
[all …]
Dlayout.rs38 ctx: &BindgenContext, in known_type_for_size()
77 pub(crate) fn for_size(ctx: &BindgenContext, size: usize) -> Self { in for_size()
95 ctx: &BindgenContext, in from_clang_ty()
107 ctx: &BindgenContext, in known_rust_type_for_array()
127 ctx: &BindgenContext, in array_size_within_derive_limit()
Dtemplate.rs173 ctx: &BindgenContext, in as_template_param()
180 ctx: &BindgenContext, in is_template_param()
222 ctx: &mut BindgenContext, in from_ty()
296 fn is_opaque(&self, ctx: &BindgenContext, item: &Item) -> bool { in is_opaque()
332 fn trace<T>(&self, _ctx: &BindgenContext, tracer: &mut T, _: &()) in trace()
Dvar.rs105 _ctx: &BindgenContext, in dot_attributes()
127 fn default_macro_constant_type(ctx: &BindgenContext, value: i64) -> IntKind { in default_macro_constant_type()
185 ctx: &mut BindgenContext, in parse()
394 ctx: &BindgenContext, in parse_macro()
447 _ctx: &BindgenContext, in duplicated_macro_diagnostic()
Dfunction.rs152 _ctx: &BindgenContext, in dot_attributes()
313 ctx: &BindgenContext, in cursor_mangling()
378 ctx: &mut BindgenContext, in args_from_ty_and_cursor()
423 ctx: &mut BindgenContext, in from_ty()
631 ctx: &BindgenContext, in abi()
725 context: &mut BindgenContext, in parse()
829 fn trace<T>(&self, _: &BindgenContext, tracer: &mut T, _: &()) in trace()
Dtraversal.rs191 pub(crate) fn all_edges(_: &BindgenContext, _: Edge) -> bool { in all_edges()
200 pub(crate) fn only_inner_type_edges(_: &BindgenContext, edge: Edge) -> bool { in only_inner_type_edges()
207 pub(crate) fn codegen_edges(ctx: &BindgenContext, edge: Edge) -> bool { in codegen_edges()
365 context: &BindgenContext, in trace()
402 ctx: &'ctx BindgenContext, in new()
Denum_ty.rs59 ctx: &mut BindgenContext, in from_ty()
155 ctx: &BindgenContext, in is_matching_enum()
177 ctx: &BindgenContext, in computed_enum_variation()
Ddot.rs16 ctx: &BindgenContext, in dot_attributes()
24 pub(crate) fn write_dot_file<P>(ctx: &BindgenContext, path: P) -> io::Result<()> in write_dot_file()
Dmodule.rs66 _ctx: &BindgenContext, in dot_attributes()
79 ctx: &mut BindgenContext, in parse()
Dobjc.rs126 ctx: &mut BindgenContext, in from_ty()
338 fn trace<T>(&self, context: &BindgenContext, tracer: &mut T, _: &()) in trace()
Ditem_kind.rs120 ctx: &BindgenContext, in dot_attributes()
/aosp_15_r20/external/rust/android-crates-io/crates/bindgen/
Dclang.rs506 ctx: &mut BindgenContext, in visit_sorted()
509 Visitor: FnMut(&mut BindgenContext, Cursor), in visit_sorted()
551 ctx: &BindgenContext, in cmp_by_source_order()
1311 ctx: &BindgenContext, in fallible_size()
1335 ctx: &BindgenContext, in fallible_align()
1349 ctx: &BindgenContext, in fallible_layout()
Dparse.rs39 context: &mut BindgenContext, in parse()
Dlib.rs1098 fn filter_builtins(ctx: &BindgenContext, cursor: &clang::Cursor) -> bool { in filter_builtins()
1104 ctx: &mut BindgenContext, in parse_one()
/aosp_15_r20/external/rust/android-crates-io/crates/bindgen/ir/analysis/
Dderive.rs459 fn not_by_name(&self, ctx: &BindgenContext, item: &Item) -> bool { in not_by_name()
629 (ctx, derive_trait): (&'ctx BindgenContext, DeriveTrait), in new()
Dmod.rs183 ctx: &BindgenContext, in generate_dependencies()

12