Skip to content

Commit f995ee0

Browse files
committed
Stop accommodating libclang 3.8
1 parent fd0d68d commit f995ee0

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/clang.rs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -477,8 +477,7 @@ impl Cursor {
477477

478478
/// Is the referent an inlined function?
479479
pub fn is_inlined_function(&self) -> bool {
480-
clang_Cursor_isFunctionInlined::is_loaded() &&
481-
unsafe { clang_Cursor_isFunctionInlined(self.x) != 0 }
480+
unsafe { clang_Cursor_isFunctionInlined(self.x) != 0 }
482481
}
483482

484483
/// Get the width of this cursor's referent bit field, or `None` if the
@@ -1245,11 +1244,7 @@ impl Type {
12451244
pub fn named(&self) -> Type {
12461245
unsafe {
12471246
Type {
1248-
x: if clang_Type_getNamedType::is_loaded() {
1249-
clang_Type_getNamedType(self.x)
1250-
} else {
1251-
self.x
1252-
},
1247+
x: clang_Type_getNamedType(self.x),
12531248
}
12541249
}
12551250
}
@@ -1960,10 +1955,6 @@ pub struct EvalResult {
19601955
impl EvalResult {
19611956
/// Evaluate `cursor` and return the result.
19621957
pub fn new(cursor: Cursor) -> Option<Self> {
1963-
if !clang_Cursor_Evaluate::is_loaded() {
1964-
return None;
1965-
}
1966-
19671958
// Work around https://bugs.llvm.org/show_bug.cgi?id=42532, see:
19681959
// * https://github.com/rust-lang/rust-bindgen/issues/283
19691960
// * https://github.com/rust-lang/rust-bindgen/issues/1590

0 commit comments

Comments
 (0)