diff --git a/binding-generator/src/element.rs b/binding-generator/src/element.rs index 4486314c7..c76ed06c3 100644 --- a/binding-generator/src/element.rs +++ b/binding-generator/src/element.rs @@ -66,7 +66,7 @@ impl DefaultElement { parts.push(parent_name); } } - EntityKind::TranslationUnit | EntityKind::UnexposedDecl | EntityKind::NotImplemented => {} + EntityKind::TranslationUnit | EntityKind::UnexposedDecl | EntityKind::LinkageSpec | EntityKind::NotImplemented => {} _ => { unreachable!("Can't get kind of parent for cpp namespace: {:#?}", parent) } diff --git a/binding-generator/src/walker.rs b/binding-generator/src/walker.rs index 0ed102a0f..349f00ab5 100644 --- a/binding-generator/src/walker.rs +++ b/binding-generator/src/walker.rs @@ -52,6 +52,7 @@ impl<'tu> EntityWalkerExt<'tu> for Entity<'tu> { | EntityKind::ClassTemplate | EntityKind::ClassDecl | EntityKind::Destructor + | EntityKind::LinkageSpec | EntityKind::VarDecl => WalkAction::Continue, _ => { unreachable!("Unsupported decl for file: {:#?}", root_decl)