From 5388538e8724ddbf1bbebde68fe456507cb2826e Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Mon, 15 Sep 2014 16:45:30 +0000 Subject: Pretty print attributes associated with record declarations. llvm-svn: 217784 --- clang/lib/AST/DeclPrinter.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'clang/lib/AST/DeclPrinter.cpp') 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; -- cgit v1.2.1