From ad822223ee107f5e887e04e5c8c073ab0f116dd3 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Tue, 27 Aug 2013 03:15:56 +0000 Subject: [PATCH] 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 --- lib/AST/ASTDumper.cpp | 3 +++ 1 file changed, 3 insertions(+) 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)); -- 2.40.0