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 | c30636a160c640f32f847637004a2632b88cad6c (patch) | |
tree | 8dfb1dc843f02e8a2491dad56eeea2213d3e53dd | |
parent | 1de801a7120e0e8a2c7614265880452a20a38a29 (diff) |
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
-rw-r--r-- | lib/AST/DeclPrinter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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() << "}"; |