summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-11-06 02:58:37 -0600
committerGitHub <noreply@github.com>2016-11-06 02:58:37 -0600
commit09e6fe447b8da96b267d26aef0ac53326dbbb198 (patch)
treed963af360358f738116a5d8fa88caa59f52387fc /src
parent823abd580601688a86e5d53b7d54e5fa19ce43d8 (diff)
parent0e6324069148845a02dee485b49fa1c86fcd307d (diff)
Auto merge of #215 - cynicaldevil:template-check, r=emilio
Added checks for clang::Cursor::template_arg_value Fixes #134. r? @fitzgen
Diffstat (limited to 'src')
-rwxr-xr-xsrc/clang.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/clang.rs b/src/clang.rs
index a84eaaab..bfe0cfd3 100755
--- a/src/clang.rs
+++ b/src/clang.rs
@@ -10,7 +10,7 @@ use std::ffi::{CStr, CString};
use std::fmt;
use std::hash::Hash;
use std::hash::Hasher;
-use std::os::raw::{c_char, c_int, c_longlong, c_uint, c_ulong};
+use std::os::raw::{c_char, c_int, c_uint, c_ulong};
/// A cursor into the Clang AST, pointing to an AST node.
///
@@ -453,13 +453,6 @@ impl Cursor {
pub fn template_arg_kind(&self, i: c_int) -> CXTemplateArgumentKind {
unsafe { clang_Cursor_getTemplateArgumentKind(self.x, i as c_uint) }
}
-
- /// Given that this cursor's referent is a template specialization, and that
- /// the `i`th template argument is an integral, get the `i`th template
- /// argument value.
- pub fn template_arg_value(&self, i: c_int) -> c_longlong {
- unsafe { clang_Cursor_getTemplateArgumentValue(self.x, i as c_uint) }
- }
}
extern "C" fn visit_children<Visitor>(cur: CXCursor,