r201436 - Print anonymous namespaces as <anonymous namespace> instead of <anonymous>
David Blaikie
dblaikie at gmail.com
Fri Feb 14 14:12:51 PST 2014
Author: dblaikie
Date: Fri Feb 14 16:12:51 2014
New Revision: 201436
URL: http://llvm.org/viewvc/llvm-project?rev=201436&view=rev
Log:
Print anonymous namespaces as <anonymous namespace> instead of <anonymous>
Modified:
cfe/trunk/lib/AST/TypePrinter.cpp
Modified: cfe/trunk/lib/AST/TypePrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/TypePrinter.cpp?rev=201436&r1=201435&r2=201436&view=diff
==============================================================================
--- cfe/trunk/lib/AST/TypePrinter.cpp (original)
+++ cfe/trunk/lib/AST/TypePrinter.cpp Fri Feb 14 16:12:51 2014
@@ -848,7 +848,7 @@ void TypePrinter::AppendScope(DeclContex
if (NS->getIdentifier())
OS << NS->getName() << "::";
else
- OS << "<anonymous>::";
+ OS << "<anonymous namespace>::";
} else if (ClassTemplateSpecializationDecl *Spec
= dyn_cast<ClassTemplateSpecializationDecl>(DC)) {
IncludeStrongLifetimeRAII Strong(Policy);
More information about the cfe-commits
mailing list