]> granicus.if.org Git - clang/commitdiff
Print inline for inline namespaces, from Faisal Vali
authorDouglas Gregor <dgregor@apple.com>
Tue, 1 May 2012 01:43:38 +0000 (01:43 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 1 May 2012 01:43:38 +0000 (01:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155875 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/DeclPrinter.cpp

index c76dee112aa7578b525143d533ad300b191246b5..5df0fbe540ec619dc33f47af04d6f77072cb10ea 100644 (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() << "}";