Proper nested forward-declaration support for DNA types

This commit is contained in:
Jack Andersen 2016-04-06 09:49:25 -10:00
parent 8b2f1a8591
commit d2fb800b92
1 changed files with 1 additions and 1 deletions

View File

@ -2268,7 +2268,7 @@ public:
if (!EmitIncludes && !context.getSourceManager().isInMainFile(decl->getLocation())) if (!EmitIncludes && !context.getSourceManager().isInMainFile(decl->getLocation()))
return true; return true;
if (decl->isInvalidDecl() || !decl->hasDefinition()) if (decl->isInvalidDecl() || !decl->hasDefinition() || !decl->isCompleteDefinition())
return true; return true;
if (!decl->getNumBases()) if (!decl->getNumBases())