From a6ddb6451d796f5c7dc73e57751d583683a0dc9a Mon Sep 17 00:00:00 2001 From: Axel Naumann Date: Tue, 16 Sep 2014 13:43:33 +0200 Subject: [PATCH] Also fwd declare the underlying type of typedefs. --- core/metautils/src/TMetaUtils.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/metautils/src/TMetaUtils.cxx b/core/metautils/src/TMetaUtils.cxx index 95c07ba..3ffab16 100644 --- a/core/metautils/src/TMetaUtils.cxx +++ b/core/metautils/src/TMetaUtils.cxx @@ -4751,6 +4751,9 @@ static void addDeclToTransaction(clang::Decl *decl, // do not add the "T" of template to the // transaction. return; + } else if (auto *td = llvm::dyn_cast(decl)) { + addDeclsToTransactionForType(td->getUnderlyingType().getTypePtr(), + theTransaction, addedDecls); } -- 1.8.2