summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-11-02 07:55:25 -0500
committerGitHub <noreply@github.com>2016-11-02 07:55:25 -0500
commit6b303852f4a923e809c688dc5ab86c466f2901ae (patch)
tree7c19047b3a8d3b8c8de3fbd5a4e7e624ddd5b680
parentff53d7a02aced68d3bf64e1ca679061768183f69 (diff)
parente5dd02c7375771a5072543817d853835022197d1 (diff)
Auto merge of #190 - rloisel:fix-140, r=emilio
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> {