/third_party/rust/crates/bindgen/bindgen/ir/ |
D | item.rs | 7 use super::context::{BindgenContext, ItemId, PartialType, TypeId}; 43 fn canonical_name(&self, ctx: &BindgenContext) -> String; in canonical_name() 64 ctx: &BindgenContext, in namespace_aware_canonical_path() argument 68 fn canonical_path(&self, ctx: &BindgenContext) -> Vec<String>; in canonical_path() 79 fn is_opaque(&self, ctx: &BindgenContext, extra: &Self::Extra) -> bool; in is_opaque() argument 85 fn has_type_param_in_array(&self, ctx: &BindgenContext) -> bool; in has_type_param_in_array() 91 fn has_float(&self, ctx: &BindgenContext) -> bool; in has_float() 98 fn ancestors<'a>(&self, ctx: &'a BindgenContext) -> ItemAncestorsIter<'a>; in ancestors() 123 ctx: &'a BindgenContext, 128 fn new<Id: Into<ItemId>>(ctx: &'a BindgenContext, id: Id) -> Self { in new() argument [all …]
|
D | derive.rs | 14 use super::context::BindgenContext; 24 fn can_derive_debug(&self, ctx: &BindgenContext) -> bool; in can_derive_debug() 32 fn can_derive_copy(&self, ctx: &BindgenContext) -> bool; in can_derive_copy() 40 fn can_derive_default(&self, ctx: &BindgenContext) -> bool; in can_derive_default() 48 fn can_derive_hash(&self, ctx: &BindgenContext) -> bool; in can_derive_hash() 56 fn can_derive_partialeq(&self, ctx: &BindgenContext) -> bool; in can_derive_partialeq() 64 fn can_derive_partialord(&self, ctx: &BindgenContext) -> bool; in can_derive_partialord() 71 fn can_derive_eq(&self, ctx: &BindgenContext) -> bool; in can_derive_eq() 78 fn can_derive_ord(&self, ctx: &BindgenContext) -> bool; in can_derive_ord()
|
D | template.rs | 30 use super::context::{BindgenContext, ItemId, TypeId}; 110 fn self_template_params(&self, ctx: &BindgenContext) -> Vec<TypeId>; in self_template_params() 114 fn num_self_template_params(&self, ctx: &BindgenContext) -> usize { in num_self_template_params() 132 fn all_template_params(&self, ctx: &BindgenContext) -> Vec<TypeId> in all_template_params() 147 fn used_template_params(&self, ctx: &BindgenContext) -> Vec<TypeId> in used_template_params() 173 ctx: &BindgenContext, in as_template_param() argument 180 ctx: &BindgenContext, in is_template_param() argument 222 ctx: &mut BindgenContext, in from_ty() argument 296 fn is_opaque(&self, ctx: &BindgenContext, item: &Item) -> bool { in is_opaque() argument 332 fn trace<T>(&self, _ctx: &BindgenContext, tracer: &mut T, _: &()) in trace() argument
|
D | traversal.rs | 3 use super::context::{BindgenContext, ItemId}; 185 pub type TraversalPredicate = for<'a> fn(&'a BindgenContext, Edge) -> bool; 190 pub fn all_edges(_: &BindgenContext, _: Edge) -> bool { in all_edges() argument 199 pub fn only_inner_type_edges(_: &BindgenContext, edge: Edge) -> bool { in only_inner_type_edges() argument 206 pub fn codegen_edges(ctx: &BindgenContext, edge: Edge) -> bool { in codegen_edges() argument 238 fn new(ctx: &'ctx BindgenContext) -> Self; in new() 249 fn new(_: &'ctx BindgenContext) -> Self { in new() 262 pub struct Paths<'ctx>(BTreeMap<ItemId, ItemId>, &'ctx BindgenContext); 265 fn new(ctx: &'ctx BindgenContext) -> Self { in new() 364 context: &BindgenContext, in trace() argument [all …]
|
D | layout.rs | 6 use crate::ir::context::BindgenContext; 38 ctx: &BindgenContext, in known_type_for_size() argument 75 pub fn for_size(ctx: &BindgenContext, size: usize) -> Self { in for_size() argument 101 pub fn from_clang_ty(ty: &clang::Type, ctx: &BindgenContext) -> Type { in from_clang_ty() 112 ctx: &BindgenContext, in known_rust_type_for_array() argument 119 pub fn array_size(&self, ctx: &BindgenContext) -> Option<usize> { in array_size() 132 ctx: &BindgenContext, in array_size_within_derive_limit() argument
|
D | comp.rs | 5 use super::context::{BindgenContext, FunctionId, ItemId, TypeId, VarId}; 201 pub fn layout(&self, ctx: &BindgenContext) -> Option<Layout> { in layout() 214 fn trace<T>(&self, _: &BindgenContext, tracer: &mut T, _: &()) in trace() argument 234 ctx: &BindgenContext, in dot_attributes() argument 274 _ctx: &BindgenContext, in dot_attributes() argument 292 _ctx: &BindgenContext, in dot_attributes() argument 495 ctx: &BindgenContext, in raw_fields_to_fields_and_bitfield_units() argument 550 ctx: &BindgenContext, in bitfields_to_allocation_units() argument 732 fn compute_bitfield_units(&mut self, ctx: &BindgenContext, packed: bool) { in compute_bitfield_units() argument 755 fn deanonymize_fields(&mut self, ctx: &BindgenContext, methods: &[Method]) { in deanonymize_fields() argument [all …]
|
D | dot.rs | 3 use super::context::{BindgenContext, ItemId}; 16 ctx: &BindgenContext, in dot_attributes() argument 24 pub fn write_dot_file<P>(ctx: &BindgenContext, path: P) -> io::Result<()> in write_dot_file() argument
|
D | module.rs | 3 use super::context::BindgenContext; 65 _ctx: &BindgenContext, in dot_attributes() argument 78 ctx: &mut BindgenContext, in parse() argument
|
D | ty.rs | 4 use super::context::{BindgenContext, ItemId, TypeId}; 206 pub fn is_incomplete_array(&self, ctx: &BindgenContext) -> Option<ItemId> { in is_incomplete_array() 223 pub fn layout(&self, ctx: &BindgenContext) -> Option<Layout> { in layout() 271 ctx: &BindgenContext, in sanitized_name() argument 294 ctx: &'tr BindgenContext, in canonical_type() argument 307 ctx: &'tr BindgenContext, in safe_canonical_type() argument 361 fn is_opaque(&self, ctx: &BindgenContext, item: &Item) -> bool { in is_opaque() argument 379 ctx: &BindgenContext, in as_template_param() argument 391 ctx: &BindgenContext, in as_template_param() argument 405 ctx: &BindgenContext, in dot_attributes() argument [all …]
|
D | function.rs | 4 use super::context::{BindgenContext, TypeId}; 153 _ctx: &BindgenContext, in dot_attributes() argument 301 ctx: &BindgenContext, in cursor_mangling() argument 365 ctx: &mut BindgenContext, in args_from_ty_and_cursor() argument 405 ctx: &mut BindgenContext, in from_ty() argument 598 ctx: &BindgenContext, in abi() argument 657 context: &mut BindgenContext, in parse() argument 749 fn trace<T>(&self, _: &BindgenContext, tracer: &mut T, _: &()) in trace() argument
|
D | enum_ty.rs | 4 use super::context::{BindgenContext, TypeId}; 56 ctx: &mut BindgenContext, in from_ty() argument 152 ctx: &BindgenContext, in is_matching_enum() argument 174 ctx: &BindgenContext, in computed_enum_variation() argument
|
D | var.rs | 4 use super::context::{BindgenContext, TypeId}; 96 _ctx: &BindgenContext, in dot_attributes() argument 118 fn default_macro_constant_type(ctx: &BindgenContext, value: i64) -> IntKind { in default_macro_constant_type() argument 176 ctx: &mut BindgenContext, in parse() argument 377 ctx: &BindgenContext, in parse_macro() argument
|
D | context.rs | 88 pub fn $checked(&self, ctx: &BindgenContext) -> Option<$name> { 97 pub fn $expected(&self, ctx: &BindgenContext) -> $name { 216 fn can_derive_debug(&self, ctx: &BindgenContext) -> bool { in can_derive_debug() 225 fn can_derive_default(&self, ctx: &BindgenContext) -> bool { in can_derive_default() 234 fn can_derive_copy(&self, ctx: &BindgenContext) -> bool { in can_derive_copy() 243 fn can_derive_hash(&self, ctx: &BindgenContext) -> bool { in can_derive_hash() 252 fn can_derive_partialord(&self, ctx: &BindgenContext) -> bool { in can_derive_partialord() 263 fn can_derive_partialeq(&self, ctx: &BindgenContext) -> bool { in can_derive_partialeq() 274 fn can_derive_eq(&self, ctx: &BindgenContext) -> bool { in can_derive_eq() 286 fn can_derive_ord(&self, ctx: &BindgenContext) -> bool { in can_derive_ord() [all …]
|
/third_party/rust/crates/bindgen/bindgen/codegen/ |
D | helpers.rs | 3 use crate::ir::context::BindgenContext; 77 pub fn blob(ctx: &BindgenContext, layout: Layout) -> TokenStream { in blob() argument 109 ctx: &BindgenContext, in integer_type() argument 118 pub fn bitfield_unit(ctx: &BindgenContext, layout: Layout) -> TokenStream { in bitfield_unit() argument 134 use crate::ir::context::BindgenContext; 141 pub fn c_void(ctx: &BindgenContext) -> TokenStream { in c_void() 162 pub fn raw_type(ctx: &BindgenContext, name: &str) -> TokenStream { in raw_type() argument 188 ctx: &BindgenContext, in float_kind_rust_type() argument 258 pub fn float_expr(ctx: &BindgenContext, f: f64) -> Result<TokenStream, ()> { in float_expr() argument 291 ctx: &BindgenContext, in arguments_from_signature() argument
|
D | mod.rs | 29 use crate::ir::context::{BindgenContext, ItemId}; 90 ctx: &BindgenContext, in top_level_path() argument 105 ctx: &BindgenContext, in root_import() argument 142 ctx: &BindgenContext, in derives_of_item() argument 402 ctx: &BindgenContext, in append_implicit_template_params() argument 410 ctx: &BindgenContext, in append_implicit_template_params() argument 467 ctx: &BindgenContext, in codegen() argument 476 ctx: &BindgenContext, in process_before_codegen() argument 510 ctx: &BindgenContext, in codegen() argument 542 ctx: &BindgenContext, in codegen() argument [all …]
|
D | impl_debug.rs | 2 use crate::ir::context::BindgenContext; 7 ctx: &BindgenContext, in gen_debug_impl() argument 62 ctx: &BindgenContext, in impl_debug() argument 72 ctx: &BindgenContext, in impl_debug() argument 88 ctx: &BindgenContext, in impl_debug() argument 117 ctx: &BindgenContext, in impl_debug() argument
|
D | serialize.rs | 6 use crate::ir::context::{BindgenContext, TypeId}; 26 ctx: &BindgenContext, in serialize() argument 38 ctx: &BindgenContext, in serialize() argument 62 ctx: &BindgenContext, in serialize() argument 155 ctx: &BindgenContext, in serialize() argument 170 ctx: &BindgenContext, in serialize() argument 337 F: FnMut(I::Item, &BindgenContext, &mut W) -> Result<(), CodegenError>, in serialize_sep() argument 342 ctx: &BindgenContext, in serialize_sep() argument
|
D | dyngen.rs | 2 use crate::ir::context::BindgenContext; 79 ctx: &BindgenContext, in get_tokens() argument 138 ctx: &BindgenContext, in push() argument
|
D | impl_partialeq.rs | 2 use crate::ir::context::BindgenContext; 9 ctx: &BindgenContext, in gen_partialeq_impl() argument 74 ctx: &BindgenContext, in gen_field() argument
|
/third_party/rust/crates/bindgen/bindgen/ir/analysis/ |
D | has_vtable.rs | 4 use crate::ir::context::{BindgenContext, ItemId}; 64 ctx: &'ctx BindgenContext, 135 type Extra = &'ctx BindgenContext; 138 fn new(ctx: &'ctx BindgenContext) -> HasVtableAnalysis<'ctx> { in new() 235 fn has_vtable(&self, ctx: &BindgenContext) -> bool; in has_vtable() 239 fn has_vtable_ptr(&self, ctx: &BindgenContext) -> bool; in has_vtable_ptr()
|
D | sizedness.rs | 6 use crate::ir::context::{BindgenContext, TypeId}; 106 ctx: &'ctx BindgenContext, 167 type Extra = &'ctx BindgenContext; 170 fn new(ctx: &'ctx BindgenContext) -> SizednessAnalysis<'ctx> { in new() 355 fn sizedness(&self, ctx: &BindgenContext) -> SizednessResult; in sizedness() 358 fn is_zero_sized(&self, ctx: &BindgenContext) -> bool { in is_zero_sized()
|
D | has_destructor.rs | 5 use crate::ir::context::{BindgenContext, ItemId}; 26 ctx: &'ctx BindgenContext, 71 type Extra = &'ctx BindgenContext; 74 fn new(ctx: &'ctx BindgenContext) -> Self { in new()
|
D | has_type_param_in_array.rs | 6 use crate::ir::context::{BindgenContext, ItemId}; 26 ctx: &'ctx BindgenContext, 88 type Extra = &'ctx BindgenContext; 91 fn new(ctx: &'ctx BindgenContext) -> HasTypeParameterInArray<'ctx> { in new()
|
D | has_float.rs | 6 use crate::ir::context::{BindgenContext, ItemId}; 26 ctx: &'ctx BindgenContext, 82 type Extra = &'ctx BindgenContext; 85 fn new(ctx: &'ctx BindgenContext) -> HasFloat<'ctx> { in new()
|
/third_party/rust/crates/bindgen/bindgen/ |
D | parse.rs | 4 use crate::ir::context::{BindgenContext, ItemId}; 38 context: &mut BindgenContext, in parse() argument
|