Home
last modified time | relevance | path

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

/external/rust/crates/bindgen/src/
Dparse.rs39 context: &mut BindgenContext, in parse()
49 context: &mut BindgenContext, in parse()
57 ctx: &mut BindgenContext, in from_ty()
67 ctx: &mut BindgenContext, in from_ty_with_id()
76 context: &mut BindgenContext, in from_ty_or_ref()
86 context: &mut BindgenContext, in from_ty_or_ref_with_id()
93 ctx: &mut BindgenContext, in type_param()
100 context: &mut BindgenContext, in builtin_type()
Dclang.rs1069 ctx: &BindgenContext, in fallible_size()
1093 ctx: &BindgenContext, in fallible_align()
1107 ctx: &BindgenContext, in fallible_layout()
Dlib.rs2450 fn filter_builtins(ctx: &BindgenContext, cursor: &clang::Cursor) -> bool { in filter_builtins()
2456 ctx: &mut BindgenContext, in parse_one()
/external/rust/crates/bindgen/src/codegen/
Dhelpers.rs75 pub fn blob(ctx: &BindgenContext, layout: Layout) -> TokenStream { in blob()
107 ctx: &BindgenContext, in integer_type()
116 pub fn bitfield_unit(ctx: &BindgenContext, layout: Layout) -> TokenStream { in bitfield_unit()
160 pub fn raw_type(ctx: &BindgenContext, name: &str) -> TokenStream { in raw_type()
176 ctx: &BindgenContext, in float_kind_rust_type()
246 pub fn float_expr(ctx: &BindgenContext, f: f64) -> Result<TokenStream, ()> { in float_expr()
279 ctx: &BindgenContext, in arguments_from_signature()
Dmod.rs64 ctx: &BindgenContext, in top_level_path()
79 ctx: &BindgenContext, in root_import()
365 ctx: &BindgenContext, in append_implicit_template_params()
373 ctx: &BindgenContext, in append_implicit_template_params()
430 ctx: &BindgenContext, in codegen()
439 ctx: &BindgenContext, in process_before_codegen()
473 ctx: &BindgenContext, in codegen()
505 ctx: &BindgenContext, in codegen()
597 ctx: &BindgenContext, in codegen()
725 ctx: &BindgenContext, in codegen()
[all …]
Dimpl_debug.rs8 ctx: &BindgenContext, in gen_debug_impl()
63 ctx: &BindgenContext, in impl_debug()
73 ctx: &BindgenContext, in impl_debug()
89 ctx: &BindgenContext, in impl_debug()
118 ctx: &BindgenContext, in impl_debug()
Dimpl_partialeq.rs10 ctx: &BindgenContext, in gen_partialeq_impl()
75 ctx: &BindgenContext, in gen_field()
Dstruct_layout.rs86 ctx: &'a BindgenContext, in new()
/external/rust/crates/bindgen/src/ir/
Dcontext.rs308 pub struct BindgenContext { struct
310 items: Vec<Option<Item>>,
314 types: HashMap<TypeKey, TypeId>,
318 type_params: HashMap<clang::Cursor, TypeId>,
321 modules: HashMap<Cursor, ModuleId>,
324 root_module: ModuleId,
327 current_module: ModuleId,
335 semantic_parents: HashMap<clang::Cursor, ItemId>,
348 currently_parsed_types: Vec<PartialType>,
355 parsed_macros: StdHashMap<Vec<u8>, cexpr::expr::EvalResult>,
[all …]
Dlayout.rs38 ctx: &BindgenContext, in known_type_for_size()
75 pub fn for_size(ctx: &BindgenContext, size: usize) -> Self { in for_size()
112 ctx: &BindgenContext, in known_rust_type_for_array()
132 ctx: &BindgenContext, in array_size_within_derive_limit()
Dtemplate.rs174 ctx: &BindgenContext, in as_template_param()
181 ctx: &BindgenContext, in is_template_param()
223 ctx: &mut BindgenContext, in from_ty()
297 fn is_opaque(&self, ctx: &BindgenContext, item: &Item) -> bool { in is_opaque()
333 fn trace<T>(&self, _ctx: &BindgenContext, tracer: &mut T, _: &()) in trace()
Ddot.rs16 ctx: &BindgenContext, in dot_attributes()
24 pub fn write_dot_file<P>(ctx: &BindgenContext, path: P) -> io::Result<()> in write_dot_file()
Ditem.rs67 ctx: &BindgenContext, in namespace_aware_canonical_path()
82 fn is_opaque(&self, ctx: &BindgenContext, extra: &Self::Extra) -> bool; in is_opaque()
131 fn new<Id: Into<ItemId>>(ctx: &'a BindgenContext, id: Id) -> Self { in new()
167 ctx: &BindgenContext, in as_template_param()
179 ctx: &BindgenContext, in as_template_param()
191 ctx: &BindgenContext, in as_template_param()
222 ctx: &BindgenContext, in namespace_aware_canonical_path()
261 fn trace<T>(&self, ctx: &BindgenContext, tracer: &mut T, extra: &()) in trace()
272 fn trace<T>(&self, ctx: &BindgenContext, tracer: &mut T, _extra: &()) in trace()
455 ctx: &mut BindgenContext, in new_opaque_type()
[all …]
Dty.rs301 ctx: &BindgenContext, in sanitized_name()
328 ctx: &'tr BindgenContext, in canonical_type()
341 ctx: &'tr BindgenContext, in safe_canonical_type()
395 fn is_opaque(&self, ctx: &BindgenContext, item: &Item) -> bool { in is_opaque()
413 ctx: &BindgenContext, in as_template_param()
425 ctx: &BindgenContext, in as_template_param()
439 ctx: &BindgenContext, in dot_attributes()
468 ctx: &BindgenContext, in dot_attributes()
722 ctx: &mut BindgenContext, in from_clang_ty()
1226 fn trace<T>(&self, context: &BindgenContext, tracer: &mut T, item: &Item) in trace()
Dcomp.rs216 fn trace<T>(&self, _: &BindgenContext, tracer: &mut T, _: &()) in trace()
236 ctx: &BindgenContext, in dot_attributes()
276 _ctx: &BindgenContext, in dot_attributes()
294 _ctx: &BindgenContext, in dot_attributes()
497 ctx: &BindgenContext, in raw_fields_to_fields_and_bitfield_units()
552 ctx: &BindgenContext, in bitfields_to_allocation_units()
737 fn compute_bitfield_units(&mut self, ctx: &BindgenContext, packed: bool) { in compute_bitfield_units()
762 fn deanonymize_fields(&mut self, ctx: &BindgenContext, methods: &[Method]) { in deanonymize_fields()
776 ctx: &BindgenContext, in deanonymize_fields()
856 fn trace<T>(&self, context: &BindgenContext, tracer: &mut T, _: &()) in trace()
[all …]
Dtraversal.rs185 fn should_follow(&self, ctx: &BindgenContext, edge: Edge) -> bool; in should_follow()
189 fn should_follow(&self, ctx: &BindgenContext, edge: Edge) -> bool { in should_follow()
197 pub fn all_edges(_: &BindgenContext, _: Edge) -> bool { in all_edges()
206 pub fn only_inner_type_edges(_: &BindgenContext, edge: Edge) -> bool { in only_inner_type_edges()
213 pub fn codegen_edges(ctx: &BindgenContext, edge: Edge) -> bool { in codegen_edges()
371 context: &BindgenContext, in trace()
411 ctx: &'ctx BindgenContext, in new()
Dvar.rs98 _ctx: &BindgenContext, in dot_attributes()
120 fn default_macro_constant_type(ctx: &BindgenContext, value: i64) -> IntKind { in default_macro_constant_type()
203 ctx: &mut BindgenContext, in parse()
389 ctx: &BindgenContext, in parse_macro()
Dmodule.rs65 _ctx: &BindgenContext, in dot_attributes()
78 ctx: &mut BindgenContext, in parse()
Dfunction.rs146 _ctx: &BindgenContext, in dot_attributes()
248 ctx: &BindgenContext, in cursor_mangling()
312 ctx: &mut BindgenContext, in args_from_ty_and_cursor()
369 ctx: &mut BindgenContext, in from_ty()
578 context: &mut BindgenContext, in parse()
643 fn trace<T>(&self, _: &BindgenContext, tracer: &mut T, _: &()) in trace()
Denum_ty.rs56 ctx: &mut BindgenContext, in from_ty()
152 ctx: &BindgenContext, in is_matching_enum()
174 ctx: &BindgenContext, in computed_enum_variation()
Dobjc.rs129 ctx: &mut BindgenContext, in from_ty()
308 fn trace<T>(&self, context: &BindgenContext, tracer: &mut T, _: &()) in trace()
Ditem_kind.rs132 ctx: &BindgenContext, in dot_attributes()
/external/rust/crates/bindgen/src/ir/analysis/
Dderive.rs458 fn not_by_name(&self, ctx: &BindgenContext, item: &Item) -> bool { in not_by_name()
642 (ctx, derive_trait): (&'ctx BindgenContext, DeriveTrait), in new()
Dmod.rs178 ctx: &BindgenContext, in generate_dependencies()