summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTDumper.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-08-30 05:32:29 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-08-30 05:32:29 +0000
commit99bc1b99d3a27c7094709a2c4a7a9aa44f479365 (patch)
treeb5b0abaa4bd5cb7042b755dd0018242d7f3c20ca /clang/lib/AST/ASTDumper.cpp
parenta4ba74c5f50a1f03fdf7ff23b6b1a2380fb58a8c (diff)
downloadbcm5719-llvm-99bc1b99d3a27c7094709a2c4a7a9aa44f479365.tar.gz
bcm5719-llvm-99bc1b99d3a27c7094709a2c4a7a9aa44f479365.zip
Mention in AST dump whether a class declaration is a definition.
llvm-svn: 189647
Diffstat (limited to 'clang/lib/AST/ASTDumper.cpp')
-rw-r--r--clang/lib/AST/ASTDumper.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTDumper.cpp b/clang/lib/AST/ASTDumper.cpp
index a38202a0938..dfd4640d8fe 100644
--- a/clang/lib/AST/ASTDumper.cpp
+++ b/clang/lib/AST/ASTDumper.cpp
@@ -783,6 +783,8 @@ void ASTDumper::VisitRecordDecl(const RecordDecl *D) {
dumpName(D);
if (D->isModulePrivate())
OS << " __module_private__";
+ if (D->isCompleteDefinition())
+ OS << " definition";
}
void ASTDumper::VisitEnumConstantDecl(const EnumConstantDecl *D) {
OpenPOWER on IntegriCloud