/third_party/rust/crates/cxx/syntax/ |
D | mangle.rs | 87 pub fn extern_fn(efn: &ExternFn, types: &Types) -> Symbol { in extern_fn() 88 match &efn.receiver { in extern_fn() 92 efn.name.namespace, in extern_fn() 95 efn.name.rust, in extern_fn() 98 None => join!(efn.name.namespace, CXXBRIDGE, efn.name.rust), in extern_fn() 113 pub fn c_trampoline(efn: &ExternFn, var: &Pair, types: &Types) -> Symbol { in c_trampoline() 114 join!(extern_fn(efn, types), var.rust, 0) in c_trampoline() 118 pub fn r_trampoline(efn: &ExternFn, var: &Pair, types: &Types) -> Symbol { in r_trampoline() 119 join!(extern_fn(efn, types), var.rust, 1) in r_trampoline()
|
D | trivial.rs | 49 Api::CxxFunction(efn) | Api::RustFunction(efn) => { in required_trivial_reasons() 50 if let Some(receiver) = &efn.receiver { in required_trivial_reasons() 52 let reason = TrivialReason::UnpinnedMut(efn); in required_trivial_reasons() 56 for arg in &efn.args { in required_trivial_reasons() 59 let reason = TrivialReason::FunctionArgument(efn); in required_trivial_reasons() 65 let reason = TrivialReason::UnpinnedMut(efn); in required_trivial_reasons() 73 if let Some(ret) = &efn.ret { in required_trivial_reasons() 76 let reason = TrivialReason::FunctionReturn(efn); in required_trivial_reasons() 82 let reason = TrivialReason::UnpinnedMut(efn); in required_trivial_reasons() 149 TrivialReason::FunctionArgument(efn) => { in as_what() [all …]
|
D | check.rs | 69 Api::CxxFunction(efn) | Api::RustFunction(efn) => check_api_fn(cx, efn), in do_typecheck() 403 fn check_api_fn(cx: &mut Check, efn: &ExternFn) { in check_api_fn() 404 match efn.lang { in check_api_fn() 406 if !efn.generics.params.is_empty() && !efn.trusted { in check_api_fn() 407 let ref span = span_for_generics_error(efn); in check_api_fn() 412 if !efn.generics.params.is_empty() && efn.unsafety.is_none() { in check_api_fn() 413 let ref span = span_for_generics_error(efn); in check_api_fn() 416 efn.name.rust, in check_api_fn() 423 check_generics(cx, &efn.sig.generics); in check_api_fn() 425 if let Some(receiver) = &efn.receiver { in check_api_fn() [all …]
|
D | ident.rs | 46 Api::CxxFunction(efn) | Api::RustFunction(efn) => { in check_all() 47 check(cx, &efn.name); in check_all() 48 for arg in &efn.args { in check_all()
|
D | types.rs | 142 Api::CxxFunction(efn) | Api::RustFunction(efn) => { in collect() 145 if !function_names.insert((&efn.receiver, &efn.name.rust)) { in collect() 146 duplicate_name(cx, efn, &efn.name.rust); in collect() 148 for arg in &efn.args { in collect() 151 if let Some(ret) = &efn.ret { in collect()
|
D | parse.rs | 382 Ok(efn) => items.push(efn), in parse_foreign_mod() 407 Api::CxxFunction(efn) => efn.unsafety.is_none(), in parse_foreign_mod() 425 if let Api::CxxFunction(efn) | Api::RustFunction(efn) = item { in parse_foreign_mod() 426 if let Some(receiver) = &mut efn.receiver { in parse_foreign_mod()
|
/third_party/rust/crates/cxx/gen/src/ |
D | write.rs | 72 if let Api::CxxFunction(efn) | Api::RustFunction(efn) = api { in write_data_structures() 73 if let Some(receiver) = &efn.sig.receiver { in write_data_structures() 77 .push(efn); in write_data_structures() 144 Api::CxxFunction(efn) => write_cxx_function_shim(out, efn), in write_functions() 145 Api::RustFunction(efn) => write_rust_function_decl(out, efn), in write_functions() 157 Api::RustFunction(efn) => { in write_functions() 159 write_rust_function_shim(out, efn); in write_functions() 703 fn write_cxx_function_shim<'a>(out: &mut OutFile<'a>, efn: &'a ExternFn) { in write_cxx_function_shim() 705 out.set_namespace(&efn.name.namespace); in write_cxx_function_shim() 708 if efn.throws { in write_cxx_function_shim() [all …]
|
D | namespace.rs | 7 Api::CxxFunction(efn) | Api::RustFunction(efn) => &efn.name.namespace, in namespace()
|
D | cfg.rs | 118 Api::CxxFunction(efn) | Api::RustFunction(efn) => &efn.cfg, in cfg()
|
/third_party/rust/crates/cxx/macro/src/ |
D | expand.rs | 79 Api::CxxFunction(efn) => { in expand() 80 expanded.extend(expand_cxx_function_shim(efn, types)); in expand() 86 Api::RustFunction(efn) => hidden.extend(expand_rust_function_shim(efn, types)), in expand() 450 fn expand_cxx_function_decl(efn: &ExternFn, types: &Types) -> TokenStream { in expand_cxx_function_decl() 451 let generics = &efn.generics; in expand_cxx_function_decl() 452 let receiver = efn.receiver.iter().map(|receiver| { in expand_cxx_function_decl() 456 let args = efn.args.iter().map(|arg| { in expand_cxx_function_decl() 473 let ret = if efn.throws { in expand_cxx_function_decl() 476 expand_extern_return_type(&efn.ret, types, true) in expand_cxx_function_decl() 479 if indirect_return(efn, types) { in expand_cxx_function_decl() [all …]
|
/third_party/openssl/providers/implementations/rands/seeding/ |
D | rand_vms.c | 389 uint32_t efn; in data_collect_method() local 417 if ((status = lib$get_ef(&efn)) != SS$_NORMAL) { in data_collect_method() 421 if ((status = sys$getrmi(efn, 0, 0, RMI_items_64bit, &iosb, 0, 0)) in data_collect_method() 426 if ((status = sys$synch(efn, &iosb)) != SS$_NORMAL) { in data_collect_method() 434 if ((status = sys$getrmi(efn, 0, 0, RMI_items, &iosb, 0, 0)) in data_collect_method() 439 if ((status = sys$synch(efn, &iosb)) != SS$_NORMAL) { in data_collect_method() 447 if ((status = lib$free_ef(&efn)) != SS$_NORMAL) { in data_collect_method()
|