summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2013-08-27 03:15:56 +0000
committerNick Lewycky <nicholas@mxc.ca>2013-08-27 03:15:56 +0000
commita382db02936d930d1c8bcbc12d6713bbd8ca2f66 (patch)
tree9b0e57aa337c26de27fcfa966efe0cb0809f3f74
parentb000e4d7581b284ab93fce21585da2ecc2e8d632 (diff)
downloadbcm5719-llvm-a382db02936d930d1c8bcbc12d6713bbd8ca2f66.tar.gz
bcm5719-llvm-a382db02936d930d1c8bcbc12d6713bbd8ca2f66.zip
Show which decls are marked invalid in -ast-dump.
llvm-svn: 189306
-rw-r--r--clang/lib/AST/ASTDumper.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTDumper.cpp b/clang/lib/AST/ASTDumper.cpp
index c66676f1ad4..a38202a0938 100644
--- a/clang/lib/AST/ASTDumper.cpp
+++ b/clang/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<DeclContext>(D));
OpenPOWER on IntegriCloud