Skip to content

Commit

Permalink
Fix unexpected LinkageSpec error
Browse files Browse the repository at this point in the history
  • Loading branch information
Miramapwyse02 authored and twistedfall committed Dec 17, 2023
1 parent de04fb8 commit 5dbeaca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion binding-generator/src/element.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
1 change: 1 addition & 0 deletions binding-generator/src/walker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5dbeaca

Please sign in to comment.