diff options
| author | Douglas Gregor <dgregor@apple.com> | 2012-05-01 01:43:38 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2012-05-01 01:43:38 +0000 |
| commit | b52637051f81b9bcd3379eddca9889525ee8e3c2 (patch) | |
| tree | 8001d25e92ce923ef099a9f9ae923e5041677f91 | |
| parent | 77b2b350f79514f63f6d26372f3b3c44cb4b24fc (diff) | |
| download | bcm5719-llvm-b52637051f81b9bcd3379eddca9889525ee8e3c2.tar.gz bcm5719-llvm-b52637051f81b9bcd3379eddca9889525ee8e3c2.zip | |
Print inline for inline namespaces, from Faisal Vali
llvm-svn: 155875
| -rw-r--r-- | clang/lib/AST/DeclPrinter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/AST/DeclPrinter.cpp b/clang/lib/AST/DeclPrinter.cpp index c76dee112aa..5df0fbe540e 100644 --- a/clang/lib/AST/DeclPrinter.cpp +++ b/clang/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() << "}"; |

