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 | 34a99e7ef27d40fd116061249ae2c4eee6486c01 (patch) | |
tree | ea22cb382468d3d8c99f7e55134401339702a987 /lib/AST/DeclPrinter.cpp | |
parent | 8703b1c8f95a43c0208ae8acc6b209d99c11f386 (diff) |
When printing a base-specifier, print the ellipsis ("...") if it is a
pack expansion. Fixes PR9452.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130310 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclPrinter.cpp')
-rw-r--r-- | lib/AST/DeclPrinter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/AST/DeclPrinter.cpp b/lib/AST/DeclPrinter.cpp index 973ac6d5af..556fc72cec 100644 --- a/lib/AST/DeclPrinter.cpp +++ b/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 << "..."; } } |