From d2fb800b926c9d4ef76e54242c54f3fe369f7c3d Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Wed, 6 Apr 2016 09:49:25 -1000 Subject: [PATCH] Proper nested forward-declaration support for DNA types --- atdna/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atdna/main.cpp b/atdna/main.cpp index 11520a0..769643c 100644 --- a/atdna/main.cpp +++ b/atdna/main.cpp @@ -2268,7 +2268,7 @@ public: if (!EmitIncludes && !context.getSourceManager().isInMainFile(decl->getLocation())) return true; - if (decl->isInvalidDecl() || !decl->hasDefinition()) + if (decl->isInvalidDecl() || !decl->hasDefinition() || !decl->isCompleteDefinition()) return true; if (!decl->getNumBases())