diff options
author | Romain Loisel <me@romain-loisel.fr> | 2016-11-02 12:38:48 +0000 |
---|---|---|
committer | Romain Loisel <me@romain-loisel.fr> | 2016-11-02 12:38:48 +0000 |
commit | e5dd02c7375771a5072543817d853835022197d1 (patch) | |
tree | 7c19047b3a8d3b8c8de3fbd5a4e7e624ddd5b680 | |
parent | ff53d7a02aced68d3bf64e1ca679061768183f69 (diff) |
Fix #140 clang::Type::arg_types should return Option<Vec<Type>>
-rwxr-xr-x | src/clang.rs | 15 |
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> { |