From c30636a160c640f32f847637004a2632b88cad6c Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Tue, 1 May 2012 01:43:38 +0000 Subject: [PATCH] Print inline for inline namespaces, from Faisal Vali git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155875 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/DeclPrinter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/AST/DeclPrinter.cpp b/lib/AST/DeclPrinter.cpp index c76dee112a..5df0fbe540 100644 --- a/lib/AST/DeclPrinter.cpp +++ b/lib/AST/DeclPrinter.cpp @@ -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() << "}"; -- 2.40.0