summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-11-04 10:51:36 -0500
committerGitHub <noreply@github.com>2016-11-04 10:51:36 -0500
commitb4d5338b557b9ec8edb777deb6866bdfd434b458 (patch)
treeda4919831cbc9bec71bfc6703a6155ab70f8086f
parentd57362fbc223b25c4ddee8f59f5ba4daa0657c52 (diff)
parent2523bf49939dc876b00c9f0c2de2b5bdf328a25c (diff)
Auto merge of #205 - Natim:131-cursor-ret-type-return-option-type, r=emilio
Make clang::Cursor::ret_type return an Option<Type> — Fixes #131 Well apparently nobody is using `Cursor::ret_type` 😢
-rwxr-xr-xsrc/clang.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/clang.rs b/src/clang.rs
index 7702c660..045c4987 100755
--- a/src/clang.rs
+++ b/src/clang.rs
@@ -401,16 +401,6 @@ impl Cursor {
}
/// Given that this cursor's referent is a function/method call or
- /// declaration, return a cursor to its return type.
- pub fn ret_type(&self) -> Type {
- unsafe {
- Type {
- x: clang_getCursorResultType(self.x),
- }
- }
- }
-
- /// Given that this cursor's referent is a function/method call or
/// declaration, return the number of arguments it takes.
///
/// Returns -1 if the cursor's referent is not a function/method call or