summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/clang.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/clang.rs b/src/clang.rs
index a11e2924..b250e548 100755
--- a/src/clang.rs
+++ b/src/clang.rs
@@ -715,6 +715,11 @@ impl Type {
}
}
}
+
+ /// Is this a valid type?
+ pub fn is_valid(&self) -> bool {
+ self.kind() != CXType_Invalid
+ }
}
/// An iterator for a type's template arguments.