]> granicus.if.org Git - clang/commitdiff
Show which decls are marked invalid in -ast-dump.
authorNick Lewycky <nicholas@mxc.ca>
Tue, 27 Aug 2013 03:15:56 +0000 (03:15 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Tue, 27 Aug 2013 03:15:56 +0000 (03:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189306 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ASTDumper.cpp

index c66676f1ad454e5dbd4d3cdb326d6e6cf6493735..a38202a09384307e86328bf7217af5cdeab9b3cb 100644 (file)
@@ -745,6 +745,9 @@ void ASTDumper::dumpDecl(const Decl *D) {
   lastChild();
   dumpFullComment(Comment);
 
+  if (D->isInvalidDecl())
+    OS << " invalid";
+
   setMoreChildren(false);
   if (HasDeclContext)
     dumpDeclContext(cast<DeclContext>(D));