Print inline for inline namespaces, from Faisal Vali

llvm-svn: 155875
This commit is contained in:
Douglas Gregor 2012-05-01 01:43:38 +00:00
parent 77b2b350f7
commit b52637051f
1 changed files with 2 additions and 0 deletions

View File

@ -666,6 +666,8 @@ void DeclPrinter::VisitStaticAssertDecl(StaticAssertDecl *D) {
// C++ declarations
//----------------------------------------------------------------------------
void DeclPrinter::VisitNamespaceDecl(NamespaceDecl *D) {
if (D->isInline())
Out << "inline ";
Out << "namespace " << *D << " {\n";
VisitDeclContext(D);
Indent() << "}";