summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ir/item.rs3
-rw-r--r--src/ir/ty.rs3
2 files changed, 5 insertions, 1 deletions
diff --git a/src/ir/item.rs b/src/ir/item.rs
index a6ee4ff3..380313e7 100644
--- a/src/ir/item.rs
+++ b/src/ir/item.rs
@@ -1319,7 +1319,8 @@ impl ClangItemParser for Item {
CXCursor_UsingDeclaration |
CXCursor_UsingDirective |
CXCursor_StaticAssert |
- CXCursor_InclusionDirective => {
+ CXCursor_InclusionDirective |
+ CXCursor_FunctionTemplate => {
debug!(
"Unhandled cursor kind {:?}: {:?}",
cursor.kind(),
diff --git a/src/ir/ty.rs b/src/ir/ty.rs
index 75d5960d..922146ea 100644
--- a/src/ir/ty.rs
+++ b/src/ir/ty.rs
@@ -1184,6 +1184,9 @@ impl Type {
name = interface.rust_name();
TypeKind::ObjCInterface(interface)
}
+ CXType_Dependent => {
+ return Err(ParseError::Continue);
+ }
_ => {
error!(
"unsupported type: kind = {:?}; ty = {:?}; at {:?}",