Skip to content

Instantly share code, notes, and snippets.

@SirVer
Created July 5, 2017 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SirVer/eb665d3529800228c554c83281f15b75 to your computer and use it in GitHub Desktop.
Save SirVer/eb665d3529800228c554c83281f15b75 to your computer and use it in GitHub Desktop.
INFO:bindgen: Clang Version: Apple LLVM version 8.0.0 (clang-800.0.42.1)
WARN:bindgen: Couldn't parse libclang version
DEBUG:bindgen::ir::context: BindgenContext::add_item(Item { id: ItemId(0), local_id: Cell { value: None }, next_child_local_id: Cell { value: 1 }, canonical_name_cache: RefCell { value: None }, comment: None, annotations: Annotations { opaque: false, hide: false, use_instead_of: None, disallow_copy: false, private_fields: None, accessor_kind: None, constify_enum_variant: false }, parent_id: ItemId(0), kind: Module(Module { name: Some("root"), kind: Normal, children: {} }), detect_derive_debug_cycle: Cell { value: false }, detect_derive_copy_cycle: Cell { value: false } }, declaration: None, loc: None
DEBUG:bindgen::ir::item: Item::from_ty_with_id: ItemId(1)
ty = Type(Test, kind: Record, cconv: 100, decl: Cursor(Test kind: StructDecl, loc: tests/headers/whitelist_fix.hpp:3:8, usr: Some("c:@S@Test")), canon: Cursor(Test kind: StructDecl, loc: tests/headers/whitelist_fix.hpp:3:8, usr: Some("c:@S@Test"))),
location = Cursor(Test kind: StructDecl, loc: tests/headers/whitelist_fix.hpp:3:8, usr: Some("c:@S@Test"))
DEBUG:bindgen::ir::context: builtin_or_resolved_ty: Type(Test, kind: Record, cconv: 100, decl: Cursor(Test kind: StructDecl, loc: tests/headers/whitelist_fix.hpp:3:8, usr: Some("c:@S@Test")), canon: Cursor(Test kind: StructDecl, loc: tests/headers/whitelist_fix.hpp:3:8, usr: Some("c:@S@Test"))), Some(Cursor(Test kind: StructDecl, loc: tests/headers/whitelist_fix.hpp:3:8, usr: Some("c:@S@Test"))), None
DEBUG:bindgen::ir::context: Not resolved, maybe builtin?
DEBUG:bindgen::ir::context: builtin_or_resolved_ty: Type(Test, kind: Record, cconv: 100, decl: Cursor(Test kind: StructDecl, loc: tests/headers/whitelist_fix.hpp:3:8, usr: Some("c:@S@Test")), canon: Cursor(Test kind: StructDecl, loc: tests/headers/whitelist_fix.hpp:3:8, usr: Some("c:@S@Test"))), Some(Cursor(Test kind: StructDecl, loc: tests/headers/whitelist_fix.hpp:3:8, usr: Some("c:@S@Test"))), None
DEBUG:bindgen::ir::context: Not resolved, maybe builtin?
DEBUG:bindgen::ir::ty: from_clang_ty: ItemId(1), ty: Type(Test, kind: Record, cconv: 100, decl: Cursor(Test kind: StructDecl, loc: tests/headers/whitelist_fix.hpp:3:8, usr: Some("c:@S@Test")), canon: Cursor(Test kind: StructDecl, loc: tests/headers/whitelist_fix.hpp:3:8, usr: Some("c:@S@Test"))), loc: Cursor(Test kind: StructDecl, loc: tests/headers/whitelist_fix.hpp:3:8, usr: Some("c:@S@Test"))
DEBUG:bindgen::ir::ty: currently_parsed_types: [PartialType { decl: Cursor(Test kind: StructDecl, loc: tests/headers/whitelist_fix.hpp:3:8, usr: Some("c:@S@Test")), id: ItemId(1) }]
DEBUG:bindgen::ir::comp: CompInfo::from_ty(Struct, Cursor(Test kind: StructDecl, loc: tests/headers/whitelist_fix.hpp:3:8, usr: Some("c:@S@Test")))
DEBUG:bindgen::ir::context: BindgenContext::add_item(Item { id: ItemId(1), local_id: Cell { value: None }, next_child_local_id: Cell { value: 1 }, canonical_name_cache: RefCell { value: None }, comment: None, annotations: Annotations { opaque: false, hide: false, use_instead_of: None, disallow_copy: false, private_fields: None, accessor_kind: None, constify_enum_variant: false }, parent_id: ItemId(0), kind: Type(Type { name: Some("Test"), layout: Some(Layout { size: 1, align: 1, packed: false }), kind: Comp(CompInfo { kind: Struct, fields: BeforeComputingBitfieldUnits([]), template_params: [], methods: [], constructors: [], destructor: None, base_members: [], inner_types: [], inner_vars: [], has_vtable: false, has_destructor: false, has_nonempty_base: false, has_non_type_template_params: false, packed: false, found_unknown_attr: false, detect_derive_debug_cycle: Cell { value: false }, detect_derive_default_cycle: Cell { value: false }, detect_has_destructor_cycle: Cell { value: false }, is_forward_declaration: false }), is_const: false }), detect_derive_debug_cycle: Cell { value: false }, detect_derive_copy_cycle: Cell { value: false } }, declaration: Some(Cursor(Test kind: StructDecl, loc: tests/headers/whitelist_fix.hpp:3:8, usr: Some("c:@S@Test"))), loc: Some(Cursor(Test kind: StructDecl, loc: tests/headers/whitelist_fix.hpp:3:8, usr: Some("c:@S@Test")))
DEBUG:bindgen::ir::context: add_item_to_module: adding ItemId(1) as child of parent module ItemId(0)
DEBUG:bindgen::ir::item: Item::from_ty_with_id: ItemId(2)
ty = Type(, kind: Invalid, cconv: 100, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None)),
location = Cursor( kind: UnexposedDecl, loc: tests/headers/whitelist_fix.hpp:4:8, usr: None)
DEBUG:bindgen::ir::context: builtin_or_resolved_ty: Type(, kind: Invalid, cconv: 100, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None)), Some(Cursor( kind: UnexposedDecl, loc: tests/headers/whitelist_fix.hpp:4:8, usr: None)), None
DEBUG:bindgen::ir::context: Not resolved, maybe builtin?
DEBUG:bindgen::ir::context: builtin_or_resolved_ty: Type(, kind: Invalid, cconv: 100, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None)), Some(Cursor( kind: UnexposedDecl, loc: tests/headers/whitelist_fix.hpp:4:8, usr: None)), None
DEBUG:bindgen::ir::context: Not resolved, maybe builtin?
DEBUG:bindgen::ir::ty: from_clang_ty: ItemId(2), ty: Type(, kind: Invalid, cconv: 100, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None)), loc: Cursor( kind: UnexposedDecl, loc: tests/headers/whitelist_fix.hpp:4:8, usr: None)
DEBUG:bindgen::ir::ty: currently_parsed_types: []
WARN:bindgen::ir::ty: invalid type Type(, kind: Invalid, cconv: 100, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None))
DEBUG:bindgen::ir::function: Function::parse(Cursor(Servo_Test kind: FunctionDecl, loc: tests/headers/whitelist_fix.hpp:4:17, usr: Some("c:@F@Servo_Test")), Type(void (Test *), kind: FunctionProto, cconv: 1, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None)))
DEBUG:bindgen::ir::item: Item::from_ty_with_id: ItemId(3)
ty = Type(void (Test *), kind: FunctionProto, cconv: 1, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None)),
location = Cursor(Servo_Test kind: FunctionDecl, loc: tests/headers/whitelist_fix.hpp:4:17, usr: Some("c:@F@Servo_Test"))
DEBUG:bindgen::ir::context: builtin_or_resolved_ty: Type(void (Test *), kind: FunctionProto, cconv: 1, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None)), Some(Cursor(Servo_Test kind: FunctionDecl, loc: tests/headers/whitelist_fix.hpp:4:17, usr: Some("c:@F@Servo_Test"))), None
DEBUG:bindgen::ir::context: Not resolved, maybe builtin?
DEBUG:bindgen::ir::context: builtin_or_resolved_ty: Type(void (Test *), kind: FunctionProto, cconv: 1, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None)), Some(Cursor(Servo_Test kind: FunctionDecl, loc: tests/headers/whitelist_fix.hpp:4:17, usr: Some("c:@F@Servo_Test"))), None
DEBUG:bindgen::ir::context: Not resolved, maybe builtin?
DEBUG:bindgen::ir::ty: from_clang_ty: ItemId(3), ty: Type(void (Test *), kind: FunctionProto, cconv: 1, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None)), loc: Cursor(Servo_Test kind: FunctionDecl, loc: tests/headers/whitelist_fix.hpp:4:17, usr: Some("c:@F@Servo_Test"))
DEBUG:bindgen::ir::ty: currently_parsed_types: []
DEBUG:bindgen::ir::function: FunctionSig::from_ty Type(void (Test *), kind: FunctionProto, cconv: 1, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None)) Cursor(Servo_Test kind: FunctionDecl, loc: tests/headers/whitelist_fix.hpp:4:17, usr: Some("c:@F@Servo_Test"))
DEBUG:bindgen::ir::item: from_ty_or_ref_with_id: ItemId(4) Type(Test *, kind: Pointer, cconv: 100, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None)), Cursor(a kind: ParmDecl, loc: tests/headers/whitelist_fix.hpp:4:34, usr: Some("c:whitelist_fix.hpp@146@F@Servo_Test@a")), None
DEBUG:bindgen::ir::context: builtin_or_resolved_ty: Type(Test *, kind: Pointer, cconv: 100, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None)), Some(Cursor(a kind: ParmDecl, loc: tests/headers/whitelist_fix.hpp:4:34, usr: Some("c:whitelist_fix.hpp@146@F@Servo_Test@a"))), None
DEBUG:bindgen::ir::context: Not resolved, maybe builtin?
DEBUG:bindgen::ir::item: New unresolved type reference: Type(Test *, kind: Pointer, cconv: 100, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None)), Cursor(a kind: ParmDecl, loc: tests/headers/whitelist_fix.hpp:4:34, usr: Some("c:whitelist_fix.hpp@146@F@Servo_Test@a"))
DEBUG:bindgen::ir::context: BindgenContext::add_item(Item { id: ItemId(4), local_id: Cell { value: None }, next_child_local_id: Cell { value: 1 }, canonical_name_cache: RefCell { value: None }, comment: None, annotations: Annotations { opaque: false, hide: false, use_instead_of: None, disallow_copy: false, private_fields: None, accessor_kind: None, constify_enum_variant: false }, parent_id: ItemId(0), kind: Type(Type { name: None, layout: None, kind: UnresolvedTypeRef(Type(Test *, kind: Pointer, cconv: 100, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None)), Cursor(a kind: ParmDecl, loc: tests/headers/whitelist_fix.hpp:4:34, usr: Some("c:whitelist_fix.hpp@146@F@Servo_Test@a")), None), is_const: false }), detect_derive_debug_cycle: Cell { value: false }, detect_derive_copy_cycle: Cell { value: false } }, declaration: Some(Cursor( kind: InvalidFile, loc: builtin definitions, usr: None)), loc: None
DEBUG:bindgen::ir::context: add_item_to_module: adding ItemId(4) as child of parent module ItemId(0)
DEBUG:bindgen::ir::context: Invalid declaration Cursor( kind: InvalidFile, loc: builtin definitions, usr: None) found for type Type { name: None, layout: None, kind: UnresolvedTypeRef(Type(Test *, kind: Pointer, cconv: 100, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None)), Cursor(a kind: ParmDecl, loc: tests/headers/whitelist_fix.hpp:4:34, usr: Some("c:whitelist_fix.hpp@146@F@Servo_Test@a")), None), is_const: false }
DEBUG:bindgen::ir::item: from_ty_or_ref_with_id: ItemId(5) Type(void, kind: Void, cconv: 100, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None)), Cursor(Servo_Test kind: FunctionDecl, loc: tests/headers/whitelist_fix.hpp:4:17, usr: Some("c:@F@Servo_Test")), None
DEBUG:bindgen::ir::context: builtin_or_resolved_ty: Type(void, kind: Void, cconv: 100, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None)), Some(Cursor(Servo_Test kind: FunctionDecl, loc: tests/headers/whitelist_fix.hpp:4:17, usr: Some("c:@F@Servo_Test"))), None
DEBUG:bindgen::ir::context: Not resolved, maybe builtin?
DEBUG:bindgen::ir::context: add_builtin_item: item = Item { id: ItemId(6), local_id: Cell { value: None }, next_child_local_id: Cell { value: 1 }, canonical_name_cache: RefCell { value: None }, comment: None, annotations: Annotations { opaque: false, hide: false, use_instead_of: None, disallow_copy: false, private_fields: None, accessor_kind: None, constify_enum_variant: false }, parent_id: ItemId(0), kind: Type(Type { name: Some("void"), layout: None, kind: Void, is_const: false }), detect_derive_debug_cycle: Cell { value: false }, detect_derive_copy_cycle: Cell { value: false } }
DEBUG:bindgen::ir::context: add_item_to_module: adding ItemId(6) as child of parent module ItemId(0)
DEBUG:bindgen::ir::item: ItemId(6) already resolved: Cursor(Servo_Test kind: FunctionDecl, loc: tests/headers/whitelist_fix.hpp:4:17, usr: Some("c:@F@Servo_Test"))
DEBUG:bindgen::ir::context: BindgenContext::add_item(Item { id: ItemId(3), local_id: Cell { value: None }, next_child_local_id: Cell { value: 1 }, canonical_name_cache: RefCell { value: None }, comment: None, annotations: Annotations { opaque: false, hide: false, use_instead_of: None, disallow_copy: false, private_fields: None, accessor_kind: None, constify_enum_variant: false }, parent_id: ItemId(0), kind: Type(Type { name: None, layout: Some(Layout { size: 1, align: 4, packed: false }), kind: Function(FunctionSig { return_type: ItemId(6), argument_types: [(Some("a"), ItemId(4))], is_variadic: false, abi: Known(C) }), is_const: false }), detect_derive_debug_cycle: Cell { value: false }, detect_derive_copy_cycle: Cell { value: false } }, declaration: Some(Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None)), loc: Some(Cursor(Servo_Test kind: FunctionDecl, loc: tests/headers/whitelist_fix.hpp:4:17, usr: Some("c:@F@Servo_Test")))
DEBUG:bindgen::ir::context: add_item_to_module: adding ItemId(3) as child of parent module ItemId(0)
DEBUG:bindgen::ir::context: Invalid declaration Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None) found for type Type { name: None, layout: Some(Layout { size: 1, align: 4, packed: false }), kind: Function(FunctionSig { return_type: ItemId(6), argument_types: [(Some("a"), ItemId(4))], is_variadic: false, abi: Known(C) }), is_const: false }
DEBUG:bindgen::ir::context: BindgenContext::add_item(Item { id: ItemId(7), local_id: Cell { value: None }, next_child_local_id: Cell { value: 1 }, canonical_name_cache: RefCell { value: None }, comment: None, annotations: Annotations { opaque: false, hide: false, use_instead_of: None, disallow_copy: false, private_fields: None, accessor_kind: None, constify_enum_variant: false }, parent_id: ItemId(0), kind: Function(Function { name: "Servo_Test", mangled_name: None, signature: ItemId(3), comment: None }), detect_derive_debug_cycle: Cell { value: false }, detect_derive_copy_cycle: Cell { value: false } }, declaration: Some(Cursor(Servo_Test kind: FunctionDecl, loc: tests/headers/whitelist_fix.hpp:4:17, usr: Some("c:@F@Servo_Test"))), loc: Some(Cursor(Servo_Test kind: FunctionDecl, loc: tests/headers/whitelist_fix.hpp:4:17, usr: Some("c:@F@Servo_Test")))
DEBUG:bindgen::ir::context: add_item_to_module: adding ItemId(7) as child of parent module ItemId(0)
DEBUG:bindgen::ir::item: Item::from_ty_with_id: ItemId(8)
ty = Type(Test *, kind: Pointer, cconv: 100, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None)),
location = Cursor(a kind: ParmDecl, loc: tests/headers/whitelist_fix.hpp:4:34, usr: Some("c:whitelist_fix.hpp@146@F@Servo_Test@a"))
DEBUG:bindgen::ir::context: builtin_or_resolved_ty: Type(Test *, kind: Pointer, cconv: 100, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None)), Some(Cursor(a kind: ParmDecl, loc: tests/headers/whitelist_fix.hpp:4:34, usr: Some("c:whitelist_fix.hpp@146@F@Servo_Test@a"))), None
DEBUG:bindgen::ir::context: Not resolved, maybe builtin?
DEBUG:bindgen::ir::context: builtin_or_resolved_ty: Type(Test *, kind: Pointer, cconv: 100, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None)), Some(Cursor(a kind: ParmDecl, loc: tests/headers/whitelist_fix.hpp:4:34, usr: Some("c:whitelist_fix.hpp@146@F@Servo_Test@a"))), None
DEBUG:bindgen::ir::context: Not resolved, maybe builtin?
DEBUG:bindgen::ir::ty: from_clang_ty: ItemId(8), ty: Type(Test *, kind: Pointer, cconv: 100, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None)), loc: Cursor(a kind: ParmDecl, loc: tests/headers/whitelist_fix.hpp:4:34, usr: Some("c:whitelist_fix.hpp@146@F@Servo_Test@a"))
DEBUG:bindgen::ir::ty: currently_parsed_types: []
DEBUG:bindgen::ir::item: from_ty_or_ref_with_id: ItemId(9) Type(Test, kind: Record, cconv: 100, decl: Cursor(Test kind: StructDecl, loc: tests/headers/whitelist_fix.hpp:3:8, usr: Some("c:@S@Test")), canon: Cursor(Test kind: StructDecl, loc: tests/headers/whitelist_fix.hpp:3:8, usr: Some("c:@S@Test"))), Cursor(a kind: ParmDecl, loc: tests/headers/whitelist_fix.hpp:4:34, usr: Some("c:whitelist_fix.hpp@146@F@Servo_Test@a")), None
DEBUG:bindgen::ir::item: refs already collected, resolving directly
DEBUG:bindgen::ir::item: Item::from_ty_with_id: ItemId(9)
ty = Type(Test, kind: Record, cconv: 100, decl: Cursor(Test kind: StructDecl, loc: tests/headers/whitelist_fix.hpp:3:8, usr: Some("c:@S@Test")), canon: Cursor(Test kind: StructDecl, loc: tests/headers/whitelist_fix.hpp:3:8, usr: Some("c:@S@Test"))),
location = Cursor(a kind: ParmDecl, loc: tests/headers/whitelist_fix.hpp:4:34, usr: Some("c:whitelist_fix.hpp@146@F@Servo_Test@a"))
DEBUG:bindgen::ir::context: builtin_or_resolved_ty: Type(Test, kind: Record, cconv: 100, decl: Cursor(Test kind: StructDecl, loc: tests/headers/whitelist_fix.hpp:3:8, usr: Some("c:@S@Test")), canon: Cursor(Test kind: StructDecl, loc: tests/headers/whitelist_fix.hpp:3:8, usr: Some("c:@S@Test"))), Some(Cursor(a kind: ParmDecl, loc: tests/headers/whitelist_fix.hpp:4:34, usr: Some("c:whitelist_fix.hpp@146@F@Servo_Test@a"))), None
DEBUG:bindgen::ir::context: Already resolved ty ItemId(1), CanonicalTypeDeclaration(Type(Test, kind: Record, cconv: 100, decl: Cursor(Test kind: StructDecl, loc: tests/headers/whitelist_fix.hpp:3:8, usr: Some("c:@S@Test")), canon: Cursor(Test kind: StructDecl, loc: tests/headers/whitelist_fix.hpp:3:8, usr: Some("c:@S@Test"))), Cursor(Test kind: StructDecl, loc: tests/headers/whitelist_fix.hpp:3:8, usr: Some("c:@S@Test"))), Type(Test, kind: Record, cconv: 100, decl: Cursor(Test kind: StructDecl, loc: tests/headers/whitelist_fix.hpp:3:8, usr: Some("c:@S@Test")), canon: Cursor(Test kind: StructDecl, loc: tests/headers/whitelist_fix.hpp:3:8, usr: Some("c:@S@Test"))) Some(Cursor(a kind: ParmDecl, loc: tests/headers/whitelist_fix.hpp:4:34, usr: Some("c:whitelist_fix.hpp@146@F@Servo_Test@a")))
DEBUG:bindgen::ir::context: add_builtin_item: item = Item { id: ItemId(9), local_id: Cell { value: None }, next_child_local_id: Cell { value: 1 }, canonical_name_cache: RefCell { value: None }, comment: None, annotations: Annotations { opaque: false, hide: false, use_instead_of: None, disallow_copy: false, private_fields: None, accessor_kind: None, constify_enum_variant: false }, parent_id: ItemId(0), kind: Type(Type { name: Some("Test"), layout: Some(Layout { size: 1, align: 1, packed: false }), kind: ResolvedTypeRef(ItemId(1)), is_const: false }), detect_derive_debug_cycle: Cell { value: false }, detect_derive_copy_cycle: Cell { value: false } }
DEBUG:bindgen::ir::context: add_item_to_module: adding ItemId(9) as child of parent module ItemId(0)
DEBUG:bindgen::ir::context: BindgenContext::add_item(Item { id: ItemId(8), local_id: Cell { value: None }, next_child_local_id: Cell { value: 1 }, canonical_name_cache: RefCell { value: None }, comment: None, annotations: Annotations { opaque: false, hide: false, use_instead_of: None, disallow_copy: false, private_fields: None, accessor_kind: None, constify_enum_variant: false }, parent_id: ItemId(0), kind: Type(Type { name: None, layout: Some(Layout { size: 8, align: 8, packed: false }), kind: Pointer(ItemId(9)), is_const: false }), detect_derive_debug_cycle: Cell { value: false }, detect_derive_copy_cycle: Cell { value: false } }, declaration: Some(Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None)), loc: Some(Cursor(a kind: ParmDecl, loc: tests/headers/whitelist_fix.hpp:4:34, usr: Some("c:whitelist_fix.hpp@146@F@Servo_Test@a")))
DEBUG:bindgen::ir::context: add_item_to_module: adding ItemId(8) as child of parent module ItemId(0)
DEBUG:bindgen::ir::context: Invalid declaration Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None) found for type Type { name: None, layout: Some(Layout { size: 8, align: 8, packed: false }), kind: Pointer(ItemId(9)), is_const: false }
DEBUG:bindgen::ir::context: No replacements to process
TRACE:bindgen::ir::named: constrain ItemId(1)
TRACE:bindgen::ir::named: initially, used set is {}
TRACE:bindgen::ir::named: other item: join with successors' usage
TRACE:bindgen::ir::named: finally, used set is {}
TRACE:bindgen::ir::named: constrain ItemId(9)
TRACE:bindgen::ir::named: initially, used set is {}
TRACE:bindgen::ir::named: other item: join with successors' usage
TRACE:bindgen::ir::named: union with ItemId(1)'s usage: []
TRACE:bindgen::ir::named: finally, used set is {}
TRACE:bindgen::ir::named: constrain ItemId(9)
TRACE:bindgen::ir::named: initially, used set is {}
TRACE:bindgen::ir::named: other item: join with successors' usage
TRACE:bindgen::ir::named: union with ItemId(1)'s usage: []
TRACE:bindgen::ir::named: finally, used set is {}
TRACE:bindgen::ir::named: constrain ItemId(8)
TRACE:bindgen::ir::named: initially, used set is {}
TRACE:bindgen::ir::named: other item: join with successors' usage
TRACE:bindgen::ir::named: union with ItemId(9)'s usage: []
TRACE:bindgen::ir::named: finally, used set is {}
TRACE:bindgen::ir::named: constrain ItemId(3)
TRACE:bindgen::ir::named: initially, used set is {}
TRACE:bindgen::ir::named: other item: join with successors' usage
TRACE:bindgen::ir::named: union with ItemId(6)'s usage: []
TRACE:bindgen::ir::named: union with ItemId(4)'s usage: []
TRACE:bindgen::ir::named: finally, used set is {}
TRACE:bindgen::ir::named: constrain ItemId(7)
TRACE:bindgen::ir::named: initially, used set is {}
TRACE:bindgen::ir::named: other item: join with successors' usage
TRACE:bindgen::ir::named: finally, used set is {}
TRACE:bindgen::ir::named: constrain ItemId(6)
TRACE:bindgen::ir::named: initially, used set is {}
TRACE:bindgen::ir::named: other item: join with successors' usage
TRACE:bindgen::ir::named: finally, used set is {}
TRACE:bindgen::ir::named: constrain ItemId(8)
TRACE:bindgen::ir::named: initially, used set is {}
TRACE:bindgen::ir::named: other item: join with successors' usage
TRACE:bindgen::ir::named: union with ItemId(9)'s usage: []
TRACE:bindgen::ir::named: finally, used set is {}
TRACE:bindgen::ir::named: constrain ItemId(4)
TRACE:bindgen::ir::named: initially, used set is {}
TRACE:bindgen::ir::named: other item: join with successors' usage
TRACE:bindgen::ir::named: union with ItemId(8)'s usage: []
TRACE:bindgen::ir::named: finally, used set is {}
TRACE:bindgen::ir::named: constrain ItemId(4)
TRACE:bindgen::ir::named: initially, used set is {}
TRACE:bindgen::ir::named: other item: join with successors' usage
TRACE:bindgen::ir::named: union with ItemId(8)'s usage: []
TRACE:bindgen::ir::named: finally, used set is {}
TRACE:bindgen::ir::named: constrain ItemId(6)
TRACE:bindgen::ir::named: initially, used set is {}
TRACE:bindgen::ir::named: other item: join with successors' usage
TRACE:bindgen::ir::named: finally, used set is {}
TRACE:bindgen::ir::named: constrain ItemId(3)
TRACE:bindgen::ir::named: initially, used set is {}
TRACE:bindgen::ir::named: other item: join with successors' usage
TRACE:bindgen::ir::named: union with ItemId(6)'s usage: []
TRACE:bindgen::ir::named: union with ItemId(4)'s usage: []
TRACE:bindgen::ir::named: finally, used set is {}
TRACE:bindgen::ir::named: constrain ItemId(1)
TRACE:bindgen::ir::named: initially, used set is {}
TRACE:bindgen::ir::named: other item: join with successors' usage
TRACE:bindgen::ir::named: finally, used set is {}
TRACE:bindgen::ir::named: constrain ItemId(0)
TRACE:bindgen::ir::named: initially, used set is {}
TRACE:bindgen::ir::named: other item: join with successors' usage
TRACE:bindgen::ir::named: finally, used set is {}
DEBUG:bindgen::codegen: codegen: BindgenOptions { hidden_types: RegexSet { items: [], set: Some(RegexSet([])) }, opaque_types: RegexSet { items: [], set: Some(RegexSet([])) }, whitelisted_types: RegexSet { items: [], set: Some(RegexSet([])) }, whitelisted_functions: RegexSet { items: [], set: Some(RegexSet([])) }, whitelisted_vars: RegexSet { items: [], set: Some(RegexSet([])) }, bitfield_enums: RegexSet { items: [], set: Some(RegexSet([])) }, constified_enums: RegexSet { items: [], set: Some(RegexSet([])) }, constified_enum_modules: RegexSet { items: [], set: Some(RegexSet([])) }, builtins: false, links: [], emit_ast: false, emit_ir: false, emit_ir_graphviz: None, enable_cxx_namespaces: false, disable_name_namespacing: false, layout_tests: true, derive_debug: true, derive_default: false, unstable_rust: false, use_core: false, ctypes_prefix: None, namespaced_constants: true, msvc_mangling: false, convert_floats: true, raw_lines: [], clang_args: ["-isystem", "/usr/local/Cellar/llvm@3.8/3.8.1/lib/llvm-3.8/bin/../include/c++/v1", "-isystem", "/usr/local/include", "-isystem", "/usr/local/Cellar/llvm@3.8/3.8.1/lib/llvm-3.8/bin/../lib/clang/3.8.1/include", "-isystem", "/usr/include", "-isystem", "/System/Library/Frameworks", "-isystem", "/Library/Frameworks", "tests/headers/whitelist_fix.hpp"], input_header: Some("tests/headers/whitelist_fix.hpp"), input_unsaved_files: [], dummy_uses: None, parse_callbacks: None, codegen_config: CodegenConfig { functions: true, types: true, vars: true, methods: true, constructors: true, destructors: true }, conservative_inline_namespaces: false, generate_comments: true, generate_inline_functions: false, whitelist_recursively: true, objc_extern_crate: false, enable_mangling: true, prepend_enum_name: true }
DEBUG:bindgen::codegen: <Item as CodeGenerator>::codegen: self = Item { id: ItemId(0), local_id: Cell { value: None }, next_child_local_id: Cell { value: 1 }, canonical_name_cache: RefCell { value: None }, comment: None, annotations: Annotations { opaque: false, hide: false, use_instead_of: None, disallow_copy: false, private_fields: None, accessor_kind: None, constify_enum_variant: false }, parent_id: ItemId(0), kind: Module(Module { name: Some("root"), kind: Normal, children: {ItemId(1), ItemId(3), ItemId(4), ItemId(6), ItemId(7), ItemId(8), ItemId(9)} }), detect_derive_debug_cycle: Cell { value: false }, detect_derive_copy_cycle: Cell { value: false } }
DEBUG:bindgen::codegen: <Module as CodeGenerator>::codegen: item = Item { id: ItemId(0), local_id: Cell { value: None }, next_child_local_id: Cell { value: 1 }, canonical_name_cache: RefCell { value: None }, comment: None, annotations: Annotations { opaque: false, hide: false, use_instead_of: None, disallow_copy: false, private_fields: None, accessor_kind: None, constify_enum_variant: false }, parent_id: ItemId(0), kind: Module(Module { name: Some("root"), kind: Normal, children: {ItemId(1), ItemId(3), ItemId(4), ItemId(6), ItemId(7), ItemId(8), ItemId(9)} }), detect_derive_debug_cycle: Cell { value: false }, detect_derive_copy_cycle: Cell { value: false } }
DEBUG:bindgen::codegen: <Item as CodeGenerator>::codegen: self = Item { id: ItemId(1), local_id: Cell { value: None }, next_child_local_id: Cell { value: 1 }, canonical_name_cache: RefCell { value: None }, comment: None, annotations: Annotations { opaque: false, hide: false, use_instead_of: None, disallow_copy: false, private_fields: None, accessor_kind: None, constify_enum_variant: false }, parent_id: ItemId(0), kind: Type(Type { name: Some("Test"), layout: Some(Layout { size: 1, align: 1, packed: false }), kind: Comp(CompInfo { kind: Struct, fields: AfterComputingBitfieldUnits([]), template_params: [], methods: [], constructors: [], destructor: None, base_members: [], inner_types: [], inner_vars: [], has_vtable: false, has_destructor: false, has_nonempty_base: false, has_non_type_template_params: false, packed: false, found_unknown_attr: false, detect_derive_debug_cycle: Cell { value: false }, detect_derive_default_cycle: Cell { value: false }, detect_has_destructor_cycle: Cell { value: false }, is_forward_declaration: false }), is_const: false }), detect_derive_debug_cycle: Cell { value: false }, detect_derive_copy_cycle: Cell { value: false } }
DEBUG:bindgen::codegen: <Type as CodeGenerator>::codegen: item = Item { id: ItemId(1), local_id: Cell { value: None }, next_child_local_id: Cell { value: 1 }, canonical_name_cache: RefCell { value: None }, comment: None, annotations: Annotations { opaque: false, hide: false, use_instead_of: None, disallow_copy: false, private_fields: None, accessor_kind: None, constify_enum_variant: false }, parent_id: ItemId(0), kind: Type(Type { name: Some("Test"), layout: Some(Layout { size: 1, align: 1, packed: false }), kind: Comp(CompInfo { kind: Struct, fields: AfterComputingBitfieldUnits([]), template_params: [], methods: [], constructors: [], destructor: None, base_members: [], inner_types: [], inner_vars: [], has_vtable: false, has_destructor: false, has_nonempty_base: false, has_non_type_template_params: false, packed: false, found_unknown_attr: false, detect_derive_debug_cycle: Cell { value: false }, detect_derive_default_cycle: Cell { value: false }, detect_has_destructor_cycle: Cell { value: false }, is_forward_declaration: false }), is_const: false }), detect_derive_debug_cycle: Cell { value: false }, detect_derive_copy_cycle: Cell { value: false } }
DEBUG:bindgen::codegen: <CompInfo as CodeGenerator>::codegen: item = Item { id: ItemId(1), local_id: Cell { value: None }, next_child_local_id: Cell { value: 1 }, canonical_name_cache: RefCell { value: None }, comment: None, annotations: Annotations { opaque: false, hide: false, use_instead_of: None, disallow_copy: false, private_fields: None, accessor_kind: None, constify_enum_variant: false }, parent_id: ItemId(0), kind: Type(Type { name: Some("Test"), layout: Some(Layout { size: 1, align: 1, packed: false }), kind: Comp(CompInfo { kind: Struct, fields: AfterComputingBitfieldUnits([]), template_params: [], methods: [], constructors: [], destructor: None, base_members: [], inner_types: [], inner_vars: [], has_vtable: false, has_destructor: false, has_nonempty_base: false, has_non_type_template_params: false, packed: false, found_unknown_attr: false, detect_derive_debug_cycle: Cell { value: false }, detect_derive_default_cycle: Cell { value: false }, detect_has_destructor_cycle: Cell { value: false }, is_forward_declaration: false }), is_const: false }), detect_derive_debug_cycle: Cell { value: false }, detect_derive_copy_cycle: Cell { value: false } }
DEBUG:bindgen::codegen: <Item as CodeGenerator>::codegen: self = Item { id: ItemId(3), local_id: Cell { value: None }, next_child_local_id: Cell { value: 1 }, canonical_name_cache: RefCell { value: None }, comment: None, annotations: Annotations { opaque: false, hide: false, use_instead_of: None, disallow_copy: false, private_fields: None, accessor_kind: None, constify_enum_variant: false }, parent_id: ItemId(0), kind: Type(Type { name: None, layout: Some(Layout { size: 1, align: 4, packed: false }), kind: Function(FunctionSig { return_type: ItemId(6), argument_types: [(Some("a"), ItemId(4))], is_variadic: false, abi: Known(C) }), is_const: false }), detect_derive_debug_cycle: Cell { value: false }, detect_derive_copy_cycle: Cell { value: false } }
DEBUG:bindgen::codegen: <Type as CodeGenerator>::codegen: item = Item { id: ItemId(3), local_id: Cell { value: None }, next_child_local_id: Cell { value: 1 }, canonical_name_cache: RefCell { value: None }, comment: None, annotations: Annotations { opaque: false, hide: false, use_instead_of: None, disallow_copy: false, private_fields: None, accessor_kind: None, constify_enum_variant: false }, parent_id: ItemId(0), kind: Type(Type { name: None, layout: Some(Layout { size: 1, align: 4, packed: false }), kind: Function(FunctionSig { return_type: ItemId(6), argument_types: [(Some("a"), ItemId(4))], is_variadic: false, abi: Known(C) }), is_const: false }), detect_derive_debug_cycle: Cell { value: false }, detect_derive_copy_cycle: Cell { value: false } }
DEBUG:bindgen::codegen: <Item as CodeGenerator>::codegen: self = Item { id: ItemId(4), local_id: Cell { value: None }, next_child_local_id: Cell { value: 1 }, canonical_name_cache: RefCell { value: None }, comment: None, annotations: Annotations { opaque: false, hide: false, use_instead_of: None, disallow_copy: false, private_fields: None, accessor_kind: None, constify_enum_variant: false }, parent_id: ItemId(0), kind: Type(Type { name: None, layout: None, kind: ResolvedTypeRef(ItemId(8)), is_const: false }), detect_derive_debug_cycle: Cell { value: false }, detect_derive_copy_cycle: Cell { value: false } }
DEBUG:bindgen::codegen: <Type as CodeGenerator>::codegen: item = Item { id: ItemId(4), local_id: Cell { value: None }, next_child_local_id: Cell { value: 1 }, canonical_name_cache: RefCell { value: None }, comment: None, annotations: Annotations { opaque: false, hide: false, use_instead_of: None, disallow_copy: false, private_fields: None, accessor_kind: None, constify_enum_variant: false }, parent_id: ItemId(0), kind: Type(Type { name: None, layout: None, kind: ResolvedTypeRef(ItemId(8)), is_const: false }), detect_derive_debug_cycle: Cell { value: false }, detect_derive_copy_cycle: Cell { value: false } }
DEBUG:bindgen::codegen: <Item as CodeGenerator>::codegen: self = Item { id: ItemId(6), local_id: Cell { value: None }, next_child_local_id: Cell { value: 1 }, canonical_name_cache: RefCell { value: None }, comment: None, annotations: Annotations { opaque: false, hide: false, use_instead_of: None, disallow_copy: false, private_fields: None, accessor_kind: None, constify_enum_variant: false }, parent_id: ItemId(0), kind: Type(Type { name: Some("void"), layout: None, kind: Void, is_const: false }), detect_derive_debug_cycle: Cell { value: false }, detect_derive_copy_cycle: Cell { value: false } }
DEBUG:bindgen::codegen: <Type as CodeGenerator>::codegen: item = Item { id: ItemId(6), local_id: Cell { value: None }, next_child_local_id: Cell { value: 1 }, canonical_name_cache: RefCell { value: None }, comment: None, annotations: Annotations { opaque: false, hide: false, use_instead_of: None, disallow_copy: false, private_fields: None, accessor_kind: None, constify_enum_variant: false }, parent_id: ItemId(0), kind: Type(Type { name: Some("void"), layout: None, kind: Void, is_const: false }), detect_derive_debug_cycle: Cell { value: false }, detect_derive_copy_cycle: Cell { value: false } }
DEBUG:bindgen::codegen: <Item as CodeGenerator>::codegen: self = Item { id: ItemId(7), local_id: Cell { value: None }, next_child_local_id: Cell { value: 1 }, canonical_name_cache: RefCell { value: None }, comment: None, annotations: Annotations { opaque: false, hide: false, use_instead_of: None, disallow_copy: false, private_fields: None, accessor_kind: None, constify_enum_variant: false }, parent_id: ItemId(0), kind: Function(Function { name: "Servo_Test", mangled_name: None, signature: ItemId(3), comment: None }), detect_derive_debug_cycle: Cell { value: false }, detect_derive_copy_cycle: Cell { value: false } }
DEBUG:bindgen::codegen: <Function as CodeGenerator>::codegen: item = Item { id: ItemId(7), local_id: Cell { value: None }, next_child_local_id: Cell { value: 1 }, canonical_name_cache: RefCell { value: None }, comment: None, annotations: Annotations { opaque: false, hide: false, use_instead_of: None, disallow_copy: false, private_fields: None, accessor_kind: None, constify_enum_variant: false }, parent_id: ItemId(0), kind: Function(Function { name: "Servo_Test", mangled_name: None, signature: ItemId(3), comment: None }), detect_derive_debug_cycle: Cell { value: false }, detect_derive_copy_cycle: Cell { value: false } }
DEBUG:bindgen::codegen: <Item as CodeGenerator>::codegen: self = Item { id: ItemId(8), local_id: Cell { value: None }, next_child_local_id: Cell { value: 1 }, canonical_name_cache: RefCell { value: None }, comment: None, annotations: Annotations { opaque: false, hide: false, use_instead_of: None, disallow_copy: false, private_fields: None, accessor_kind: None, constify_enum_variant: false }, parent_id: ItemId(0), kind: Type(Type { name: None, layout: Some(Layout { size: 8, align: 8, packed: false }), kind: Pointer(ItemId(9)), is_const: false }), detect_derive_debug_cycle: Cell { value: false }, detect_derive_copy_cycle: Cell { value: false } }
DEBUG:bindgen::codegen: <Type as CodeGenerator>::codegen: item = Item { id: ItemId(8), local_id: Cell { value: None }, next_child_local_id: Cell { value: 1 }, canonical_name_cache: RefCell { value: None }, comment: None, annotations: Annotations { opaque: false, hide: false, use_instead_of: None, disallow_copy: false, private_fields: None, accessor_kind: None, constify_enum_variant: false }, parent_id: ItemId(0), kind: Type(Type { name: None, layout: Some(Layout { size: 8, align: 8, packed: false }), kind: Pointer(ItemId(9)), is_const: false }), detect_derive_debug_cycle: Cell { value: false }, detect_derive_copy_cycle: Cell { value: false } }
DEBUG:bindgen::codegen: <Item as CodeGenerator>::codegen: self = Item { id: ItemId(9), local_id: Cell { value: None }, next_child_local_id: Cell { value: 1 }, canonical_name_cache: RefCell { value: None }, comment: None, annotations: Annotations { opaque: false, hide: false, use_instead_of: None, disallow_copy: false, private_fields: None, accessor_kind: None, constify_enum_variant: false }, parent_id: ItemId(0), kind: Type(Type { name: Some("Test"), layout: Some(Layout { size: 1, align: 1, packed: false }), kind: ResolvedTypeRef(ItemId(1)), is_const: false }), detect_derive_debug_cycle: Cell { value: false }, detect_derive_copy_cycle: Cell { value: false } }
DEBUG:bindgen::codegen: <Type as CodeGenerator>::codegen: item = Item { id: ItemId(9), local_id: Cell { value: None }, next_child_local_id: Cell { value: 1 }, canonical_name_cache: RefCell { value: None }, comment: None, annotations: Annotations { opaque: false, hide: false, use_instead_of: None, disallow_copy: false, private_fields: None, accessor_kind: None, constify_enum_variant: false }, parent_id: ItemId(0), kind: Type(Type { name: Some("Test"), layout: Some(Layout { size: 1, align: 1, packed: false }), kind: ResolvedTypeRef(ItemId(1)), is_const: false }), detect_derive_debug_cycle: Cell { value: false }, detect_derive_copy_cycle: Cell { value: false } }
/* automatically generated by rust-bindgen */
#[repr(C)]
#[derive(Debug, Copy)]
pub struct Test {
pub _address: u8,
}
#[test]
fn bindgen_test_layout_Test() {
assert_eq!(::std::mem::size_of::<Test>() , 1usize , concat ! (
"Size of: " , stringify ! ( Test ) ));
assert_eq! (::std::mem::align_of::<Test>() , 1usize , concat ! (
"Alignment of " , stringify ! ( Test ) ));
}
impl Clone for Test {
fn clone(&self) -> Self { *self }
}
extern "C" {
pub fn Servo_Test(a: *mut Test);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment