summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Kulp <darren@kulp.ch>2020-06-19 20:12:02 -0700
committerEmilio Cobos Álvarez <emilio@crisal.io>2020-07-20 18:55:10 +0200
commitf4f773b6110b6b845f38414febbf37a056cc40ed (patch)
tree68670ff26d41db401e158d3d43afebc3ef325531
parent682a32959fca2a1442065fac31a8f187c330848a (diff)
Stop accommodating libclang 3.8
-rw-r--r--src/clang.rs13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/clang.rs b/src/clang.rs
index 440f115e..9c09f71c 100644
--- a/src/clang.rs
+++ b/src/clang.rs
@@ -477,8 +477,7 @@ impl Cursor {
/// Is the referent an inlined function?
pub fn is_inlined_function(&self) -> bool {
- clang_Cursor_isFunctionInlined::is_loaded() &&
- unsafe { clang_Cursor_isFunctionInlined(self.x) != 0 }
+ unsafe { clang_Cursor_isFunctionInlined(self.x) != 0 }
}
/// Get the width of this cursor's referent bit field, or `None` if the
@@ -1245,11 +1244,7 @@ impl Type {
pub fn named(&self) -> Type {
unsafe {
Type {
- x: if clang_Type_getNamedType::is_loaded() {
- clang_Type_getNamedType(self.x)
- } else {
- self.x
- },
+ x: clang_Type_getNamedType(self.x),
}
}
}
@@ -1960,10 +1955,6 @@ pub struct EvalResult {
impl EvalResult {
/// Evaluate `cursor` and return the result.
pub fn new(cursor: Cursor) -> Option<Self> {
- if !clang_Cursor_Evaluate::is_loaded() {
- return None;
- }
-
// Work around https://bugs.llvm.org/show_bug.cgi?id=42532, see:
// * https://github.com/rust-lang/rust-bindgen/issues/283
// * https://github.com/rust-lang/rust-bindgen/issues/1590