forked from OSchip/llvm-project
Print inline for inline namespaces, from Faisal Vali
llvm-svn: 155875
This commit is contained in:
parent
77b2b350f7
commit
b52637051f
|
@ -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() << "}";
|
||||
|
|
Loading…
Reference in New Issue