Skip to content

Commit

Permalink
Fix forward declaration of Union Template
Browse files Browse the repository at this point in the history
- Addresses rust-lang#1768
- Originated from Danielmelody@854ed49

Signed-off-by: Andrej Orsula <orsula.andrej@gmail.com>
  • Loading branch information
AndrejOrsula committed Oct 22, 2023
1 parent de90f88 commit 41c31b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bindgen/ir/comp.rs
Expand Up @@ -1284,6 +1284,7 @@ impl CompInfo {
CXCursor_ParmDecl => true,
CXCursor_StructDecl | CXCursor_UnionDecl |
CXCursor_ClassDecl => !cur.is_definition(),
CXCursor_ClassTemplate => kind == CompKind::Union && !cur.is_definition(),
_ => false,
});

Expand Down

0 comments on commit 41c31b5

Please sign in to comment.