summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-10-22 23:50:38 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-10-22 23:50:38 +0000
commit15fc7df535a7d3070681c7e8d24639f087433362 (patch)
treef4a41b70393098384dd145c86eac3381313061dc /clang/lib
parent15b25dffc37709dc9f0d3eb3e6bad799cec713f6 (diff)
downloadbcm5719-llvm-15fc7df535a7d3070681c7e8d24639f087433362.tar.gz
bcm5719-llvm-15fc7df535a7d3070681c7e8d24639f087433362.zip
Teach AST dumper to dump the containing module and hidden flag for declarations.
llvm-svn: 193210
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/AST/ASTDumper.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTDumper.cpp b/clang/lib/AST/ASTDumper.cpp
index 908099a23a5..b869affbbb1 100644
--- a/clang/lib/AST/ASTDumper.cpp
+++ b/clang/lib/AST/ASTDumper.cpp
@@ -552,6 +552,8 @@ void ASTDumper::dumpLookups(const DeclContext *DC) {
if (RI + 1 == RE)
lastChild();
dumpDeclRef(*RI);
+ if ((*RI)->isHidden())
+ OS << " hidden";
}
}
@@ -740,6 +742,11 @@ void ASTDumper::dumpDecl(const Decl *D) {
OS << " parent " << cast<Decl>(D->getDeclContext());
dumpPreviousDecl(OS, D);
dumpSourceRange(D->getSourceRange());
+ if (Module *M = D->getOwningModule())
+ OS << " in " << M->getFullModuleName();
+ if (const NamedDecl *ND = dyn_cast<NamedDecl>(D))
+ if (ND->isHidden())
+ OS << " hidden";
bool HasAttrs = D->attr_begin() != D->attr_end();
const FullComment *Comment =
OpenPOWER on IntegriCloud