diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-04-27 17:07:55 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-04-27 17:07:55 +0000 |
commit | 5fc8c9eafb06e716130d38cf6212f4b438d4c280 (patch) | |
tree | dc96157684ac1a72bbcb86407b3d3db23a6933a7 | |
parent | 90ebf258c6557d41d6107dc1fbac8c9e31cfa4b2 (diff) | |
download | bcm5719-llvm-5fc8c9eafb06e716130d38cf6212f4b438d4c280.tar.gz bcm5719-llvm-5fc8c9eafb06e716130d38cf6212f4b438d4c280.zip |
When printing a base-specifier, print the ellipsis ("...") if it is a
pack expansion. Fixes PR9452.
llvm-svn: 130310
-rw-r--r-- | clang/lib/AST/DeclPrinter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/AST/DeclPrinter.cpp b/clang/lib/AST/DeclPrinter.cpp index 973ac6d5af9..556fc72cec2 100644 --- a/clang/lib/AST/DeclPrinter.cpp +++ b/clang/lib/AST/DeclPrinter.cpp @@ -650,6 +650,9 @@ void DeclPrinter::VisitCXXRecordDecl(CXXRecordDecl *D) { if (AS != AS_none) Print(AS); Out << " " << Base->getType().getAsString(Policy); + + if (Base->isPackExpansion()) + Out << "..."; } } |