summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/NestedNameSpecifier.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-09-05 06:31:47 +0000
committerJohn McCall <rjmccall@apple.com>2009-09-05 06:31:47 +0000
commitb2e195a585adc59c496d80c1e40325d80b8a3f69 (patch)
tree32d174c1bb6f428bbb726c0e519c6b5139768de6 /clang/lib/AST/NestedNameSpecifier.cpp
parentd7674a47f948fc2ce62206da33862383f3b811a2 (diff)
downloadbcm5719-llvm-b2e195a585adc59c496d80c1e40325d80b8a3f69.tar.gz
bcm5719-llvm-b2e195a585adc59c496d80c1e40325d80b8a3f69.zip
Start emitting ElaboratedTypes in C++ mode. Support the effort in various
ways: remove elab types during desugaring, enhance pretty-printing to allow tags to be suppressed without suppressing scopes, look through elab types when associating a typedef name with an anonymous record type. llvm-svn: 81065
Diffstat (limited to 'clang/lib/AST/NestedNameSpecifier.cpp')
-rw-r--r--clang/lib/AST/NestedNameSpecifier.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/AST/NestedNameSpecifier.cpp b/clang/lib/AST/NestedNameSpecifier.cpp
index 0c24c89b291..24fb7524204 100644
--- a/clang/lib/AST/NestedNameSpecifier.cpp
+++ b/clang/lib/AST/NestedNameSpecifier.cpp
@@ -143,6 +143,7 @@ NestedNameSpecifier::print(llvm::raw_ostream &OS,
PrintingPolicy InnerPolicy(Policy);
InnerPolicy.SuppressTagKind = true;
+ InnerPolicy.SuppressScope = true;
// Nested-name-specifiers are intended to contain minimally-qualified
// types. An actual QualifiedNameType will not occur, since we'll store
OpenPOWER on IntegriCloud