summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikko Lehtonen <scoopr@iki.fi>2017-03-01 23:49:02 +0200
committerMikko Lehtonen <scoopr@iki.fi>2017-03-04 22:27:46 +0200
commit598ed63e9594539c863475d733fc38396b4e8764 (patch)
treeb8da4afa49b53eb66586e64a56b356130bbd2aa5
parentb71c7ba46b5992e00cc05d9d5788b9cecbcb6305 (diff)
objc: Use rust_name for the Type name
Allows to disambiguate protocols and interfaces in whitelists
-rw-r--r--src/ir/ty.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ir/ty.rs b/src/ir/ty.rs
index 329f4f54..46083881 100644
--- a/src/ir/ty.rs
+++ b/src/ir/ty.rs
@@ -1268,6 +1268,7 @@ impl Type {
CXType_ObjCInterface => {
let interface = ObjCInterface::from_ty(&location.unwrap(), ctx)
.expect("Not a valid objc interface?");
+ name = interface.rust_name();
TypeKind::ObjCInterface(interface)
}
_ => {