r189306 - Show which decls are marked invalid in -ast-dump.

Nick Lewycky nicholas at mxc.ca
Mon Aug 26 20:15:57 PDT 2013


Author: nicholas
Date: Mon Aug 26 22:15:56 2013
New Revision: 189306

URL: http://llvm.org/viewvc/llvm-project?rev=189306&view=rev
Log:
Show which decls are marked invalid in -ast-dump.

Modified:
    cfe/trunk/lib/AST/ASTDumper.cpp

Modified: cfe/trunk/lib/AST/ASTDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTDumper.cpp?rev=189306&r1=189305&r2=189306&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ASTDumper.cpp (original)
+++ cfe/trunk/lib/AST/ASTDumper.cpp Mon Aug 26 22:15:56 2013
@@ -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));





More information about the cfe-commits mailing list