Skip to content

Commit 09e6fe4

Browse files
author
bors-servo
authored
Auto merge of #215 - cynicaldevil:template-check, r=emilio
Added checks for clang::Cursor::template_arg_value Fixes #134. r? @fitzgen
2 parents 823abd5 + 0e63240 commit 09e6fe4

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/clang.rs

+1-8
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use std::ffi::{CStr, CString};
1010
use std::fmt;
1111
use std::hash::Hash;
1212
use std::hash::Hasher;
13-
use std::os::raw::{c_char, c_int, c_longlong, c_uint, c_ulong};
13+
use std::os::raw::{c_char, c_int, c_uint, c_ulong};
1414

1515
/// A cursor into the Clang AST, pointing to an AST node.
1616
///
@@ -453,13 +453,6 @@ impl Cursor {
453453
pub fn template_arg_kind(&self, i: c_int) -> CXTemplateArgumentKind {
454454
unsafe { clang_Cursor_getTemplateArgumentKind(self.x, i as c_uint) }
455455
}
456-
457-
/// Given that this cursor's referent is a template specialization, and that
458-
/// the `i`th template argument is an integral, get the `i`th template
459-
/// argument value.
460-
pub fn template_arg_value(&self, i: c_int) -> c_longlong {
461-
unsafe { clang_Cursor_getTemplateArgumentValue(self.x, i as c_uint) }
462-
}
463456
}
464457

465458
extern "C" fn visit_children<Visitor>(cur: CXCursor,

0 commit comments

Comments
 (0)