summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclPrinter.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-09-15 16:45:30 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-09-15 16:45:30 +0000
commit5388538e8724ddbf1bbebde68fe456507cb2826e (patch)
tree5f6d17b3e7e11309ec59f5209f0433a54b8ca734 /clang/lib/AST/DeclPrinter.cpp
parent18625ee75c09cf6fb2012d1df5096fd9e59bcba0 (diff)
downloadbcm5719-llvm-5388538e8724ddbf1bbebde68fe456507cb2826e.tar.gz
bcm5719-llvm-5388538e8724ddbf1bbebde68fe456507cb2826e.zip
Pretty print attributes associated with record declarations.
llvm-svn: 217784
Diffstat (limited to 'clang/lib/AST/DeclPrinter.cpp')
-rw-r--r--clang/lib/AST/DeclPrinter.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/AST/DeclPrinter.cpp b/clang/lib/AST/DeclPrinter.cpp
index 160e48b6d95..bfd090ae20d 100644
--- a/clang/lib/AST/DeclPrinter.cpp
+++ b/clang/lib/AST/DeclPrinter.cpp
@@ -377,6 +377,9 @@ void DeclPrinter::VisitRecordDecl(RecordDecl *D) {
if (!Policy.SuppressSpecifiers && D->isModulePrivate())
Out << "__module_private__ ";
Out << D->getKindName();
+
+ prettyPrintAttributes(D);
+
if (D->getIdentifier())
Out << ' ' << *D;
@@ -768,6 +771,9 @@ void DeclPrinter::VisitCXXRecordDecl(CXXRecordDecl *D) {
if (!Policy.SuppressSpecifiers && D->isModulePrivate())
Out << "__module_private__ ";
Out << D->getKindName();
+
+ prettyPrintAttributes(D);
+
if (D->getIdentifier())
Out << ' ' << *D;
OpenPOWER on IntegriCloud