[cfe-commits] r155875 - /cfe/trunk/lib/AST/DeclPrinter.cpp

Douglas Gregor dgregor at apple.com
Mon Apr 30 18:43:38 PDT 2012


Author: dgregor
Date: Mon Apr 30 20:43:38 2012
New Revision: 155875

URL: http://llvm.org/viewvc/llvm-project?rev=155875&view=rev
Log:
Print inline for inline namespaces, from Faisal Vali

Modified:
    cfe/trunk/lib/AST/DeclPrinter.cpp

Modified: cfe/trunk/lib/AST/DeclPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclPrinter.cpp?rev=155875&r1=155874&r2=155875&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclPrinter.cpp (original)
+++ cfe/trunk/lib/AST/DeclPrinter.cpp Mon Apr 30 20:43:38 2012
@@ -666,6 +666,8 @@
 // C++ declarations
 //----------------------------------------------------------------------------
 void DeclPrinter::VisitNamespaceDecl(NamespaceDecl *D) {
+  if (D->isInline())
+    Out << "inline ";
   Out << "namespace " << *D << " {\n";
   VisitDeclContext(D);
   Indent() << "}";





More information about the cfe-commits mailing list