Skip to content

Commit 6b30385

Browse files
author
bors-servo
authored
Auto merge of #190 - rloisel:fix-140, r=emilio
Fix #140 clang::Type::arg_types should return Option<Vec<Type>>
2 parents ff53d7a + e5dd02c commit 6b30385

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/clang.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -704,21 +704,6 @@ impl Type {
704704
unsafe { clang_isFunctionTypeVariadic(self.x) != 0 }
705705
}
706706

707-
/// Given that this type is a function type, get the types of its
708-
/// parameters.
709-
pub fn arg_types(&self) -> Vec<Type> {
710-
unsafe {
711-
let num = clang_getNumArgTypes(self.x) as usize;
712-
let mut args = vec![];
713-
for i in 0..num {
714-
args.push(Type {
715-
x: clang_getArgType(self.x, i as c_uint),
716-
});
717-
}
718-
args
719-
}
720-
}
721-
722707
/// Given that this type is a function type, get the type of its return
723708
/// value.
724709
pub fn ret_type(&self) -> Option<Type> {

0 commit comments

Comments
 (0)