summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Loisel <me@romain-loisel.fr>2016-11-02 12:38:48 +0000
committerRomain Loisel <me@romain-loisel.fr>2016-11-02 12:38:48 +0000
commite5dd02c7375771a5072543817d853835022197d1 (patch)
tree7c19047b3a8d3b8c8de3fbd5a4e7e624ddd5b680
parentff53d7a02aced68d3bf64e1ca679061768183f69 (diff)
Fix #140 clang::Type::arg_types should return Option<Vec<Type>>
-rwxr-xr-xsrc/clang.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/clang.rs b/src/clang.rs
index d69c8b14..bc3d511f 100755
--- a/src/clang.rs
+++ b/src/clang.rs
@@ -704,21 +704,6 @@ impl Type {
unsafe { clang_isFunctionTypeVariadic(self.x) != 0 }
}
- /// Given that this type is a function type, get the types of its
- /// parameters.
- pub fn arg_types(&self) -> Vec<Type> {
- unsafe {
- let num = clang_getNumArgTypes(self.x) as usize;
- let mut args = vec![];
- for i in 0..num {
- args.push(Type {
- x: clang_getArgType(self.x, i as c_uint),
- });
- }
- args
- }
- }
-
/// Given that this type is a function type, get the type of its return
/// value.
pub fn ret_type(&self) -> Option<Type> {