Skip to content

Commit

Permalink
Fix for #116; typedef handling apparently changed a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
rpav committed Nov 18, 2023
1 parent 040e6c0 commit 8e3957b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ Type* Type::make_type(C2FFIASTConsumer *ast, const clang::Type *t) {
return new SimpleType(ci, td, tdd->getDeclName().getAsString());
}

if_const_cast(e, clang::ElaboratedType, t) {
return make_type(ast, e->getNamedType().getTypePtr());
}

if_const_cast(tt, clang::SubstTemplateTypeParmType, t) {
if(tt != tt->desugar().getTypePtr())
return make_type(ast, tt->desugar().getTypePtr());
Expand Down

0 comments on commit 8e3957b

Please sign in to comment.