Home
last modified time | relevance | path

Searched refs:ItemKind (Results 1 – 15 of 15) sorted by relevance

/third_party/rust/crates/bindgen/bindgen/ir/
Ditem_kind.rs13 pub enum ItemKind { enum
28 impl ItemKind { impl
33 ItemKind::Module(ref module) => Some(module), in as_module()
41 ItemKind::Module(..) => "Module", in kind_name()
42 ItemKind::Type(..) => "Type", in kind_name()
43 ItemKind::Function(..) => "Function", in kind_name()
44 ItemKind::Var(..) => "Var", in kind_name()
63 ItemKind::Function(ref func) => Some(func), in as_function()
83 ItemKind::Type(ref ty) => Some(ty), in as_type()
92 ItemKind::Type(ref mut ty) => Some(ty), in as_type_mut()
[all …]
Ditem.rs14 use super::item_kind::ItemKind;
183 impl AsTemplateParam for ItemKind { implementation
192 ItemKind::Type(ref ty) => ty.as_template_param(ctx, item), in as_template_param()
193 ItemKind::Module(..) | in as_template_param()
194 ItemKind::Function(..) | in as_template_param()
195 ItemKind::Var(..) => None, in as_template_param()
281 ItemKind::Type(ref ty) => { in trace()
291 ItemKind::Function(ref fun) => { in trace()
296 ItemKind::Var(ref var) => { in trace()
299 ItemKind::Module(_) => { in trace()
[all …]
Dcontext.rs17 use super::item_kind::ItemKind;
1423 Item::new(id, None, None, id, ItemKind::Module(module), None) in build_root_module()
1732 ItemKind::Type(sub_ty), in instantiate_template()
1797 ItemKind::Type(ty), in instantiate_template()
1940 ItemKind::Type(ty), in build_wrapper()
2010 ItemKind::Type(ty), in build_builtin_ty()
2198 ItemKind::Module(module), in module()
2346 ItemKind::Module(..) => true, in compute_allowlisted_and_codegen_items()
2347 ItemKind::Function(_) => { in compute_allowlisted_and_codegen_items()
2350 ItemKind::Var(_) => { in compute_allowlisted_and_codegen_items()
[all …]
Dvar.rs10 use crate::callbacks::{ItemInfo, ItemKind, MacroParsingBehavior};
280 kind: ItemKind::Var, in parse()
Dfunction.rs9 use crate::callbacks::{ItemInfo, ItemKind};
729 kind: ItemKind::Function, in parse()
/third_party/rust/crates/bindgen/bindgen-integration/src/
Dlib.rs86 third.assert(0, false, bindings::bitfields::ItemKind::ITEM_KIND_UNO) in test_bitfields_third()
90 third.set_kind(bindings::bitfields::ItemKind::ITEM_KIND_TRES); in test_bitfields_third()
92 third.assert(12345, true, bindings::bitfields::ItemKind::ITEM_KIND_TRES) in test_bitfields_third()
198 bindings::bitfields::ItemKind::ITEM_KIND_TRES, in test_bitfield_constructors()
202 third.assert(42, false, bindings::bitfields::ItemKind::ITEM_KIND_TRES) in test_bitfield_constructors()
/third_party/rust/crates/bindgen/bindgen-integration/cpp/
DTest.h94 enum ItemKind { enum
103 ItemKind kind : 3;
106 bool assert(int first, bool second, ItemKind third);
DTest.cc64 Third::assert(int first, bool second, ItemKind third) in assert()
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIceThreading.h175 enum ItemKind { WI_Nop, WI_GlobalInits, WI_Asm, WI_Cfg }; enum
185 ItemKind getKind() const { return Kind; } in getKind()
193 const ItemKind Kind;
/third_party/rust/crates/bindgen/bindgen-tests/tests/parse_callbacks/
Dmod.rs20 ItemKind::Function => ("function_", "_name"), in generated_name_override()
21 ItemKind::Var => ("var_", "_name"), in generated_name_override()
/third_party/rust/crates/bindgen/bindgen/
Dcallbacks.rs155 pub kind: ItemKind,
160 pub enum ItemKind { enum
/third_party/rust/crates/bindgen/bindgen/codegen/
Dserialize.rs10 use crate::ir::item_kind::ItemKind;
44 ItemKind::Function(func) => { in serialize()
Dmod.rs41 use crate::ir::item_kind::ItemKind;
520 ItemKind::Module(ref module) => { in codegen()
523 ItemKind::Function(ref fun) => { in codegen()
526 ItemKind::Var(ref var) => { in codegen()
529 ItemKind::Type(ref ty) => { in codegen()
/third_party/rust/crates/syn/tests/common/
Deq.rs69 use rustc_ast::ast::ItemKind;
536 spanless_eq_enum!(ItemKind; ExternCrate(0) Use(0) Static(0 1 2) Const(0 1 2)
/third_party/rust/crates/bindgen/
DCONTRIBUTING.md278 * An `ItemKind`, which is one of: