From: Nick Lewycky Date: Tue, 27 Aug 2013 03:15:56 +0000 (+0000) Subject: Show which decls are marked invalid in -ast-dump. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad822223ee107f5e887e04e5c8c073ab0f116dd3;p=clang Show which decls are marked invalid in -ast-dump. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189306 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ASTDumper.cpp b/lib/AST/ASTDumper.cpp index c66676f1ad..a38202a093 100644 --- a/lib/AST/ASTDumper.cpp +++ b/lib/AST/ASTDumper.cpp @@ -745,6 +745,9 @@ void ASTDumper::dumpDecl(const Decl *D) { lastChild(); dumpFullComment(Comment); + if (D->isInvalidDecl()) + OS << " invalid"; + setMoreChildren(false); if (HasDeclContext) dumpDeclContext(cast(D));