From 8e3957ba2260f03079f33c311b2e334c241da6f6 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Sat, 18 Nov 2023 16:19:13 -0600 Subject: [PATCH] Fix for #116; typedef handling apparently changed a bit --- src/Type.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Type.cpp b/src/Type.cpp index a40a87f..f64968a 100644 --- a/src/Type.cpp +++ b/src/Type.cpp @@ -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());