summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/TemplateBase.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-04-02 05:58:29 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-04-02 05:58:29 +0000
commitabe1a398e33bac03596116c97a7375d074101903 (patch)
tree4cbee2b550744448b941c9d4b670dd7d565746ff /clang/lib/AST/TemplateBase.cpp
parent1ecad2c993a94fca00a713a0ae6665bb40758fb8 (diff)
downloadbcm5719-llvm-abe1a398e33bac03596116c97a7375d074101903.tar.gz
bcm5719-llvm-abe1a398e33bac03596116c97a7375d074101903.zip
Render anonymous entities as '(anonymous <thing>)' (and lambdas as '(lambda at ... )')
For namespaces, this is consistent with mangling and GCC's debug info behavior. For structs, GCC uses <anonymous struct> but we prefer consistency between all anonymous entities but don't want to confuse them with template arguments, etc, so we'll just go with parens in all cases. llvm-svn: 205398
Diffstat (limited to 'clang/lib/AST/TemplateBase.cpp')
-rw-r--r--clang/lib/AST/TemplateBase.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/TemplateBase.cpp b/clang/lib/AST/TemplateBase.cpp
index b068ffafef5..52f95bf25af 100644
--- a/clang/lib/AST/TemplateBase.cpp
+++ b/clang/lib/AST/TemplateBase.cpp
@@ -345,7 +345,7 @@ void TemplateArgument::print(const PrintingPolicy &Policy,
raw_ostream &Out) const {
switch (getKind()) {
case Null:
- Out << "<no value>";
+ Out << "(no value)";
break;
case Type: {
@@ -362,7 +362,7 @@ void TemplateArgument::print(const PrintingPolicy &Policy,
// FIXME: distinguish between pointer and reference args?
ND->printQualifiedName(Out);
} else {
- Out << "<anonymous>";
+ Out << "(anonymous)";
}
break;
}
OpenPOWER on IntegriCloud