]> granicus.if.org Git - clang/commitdiff
When printing a base-specifier, print the ellipsis ("...") if it is a
authorDouglas Gregor <dgregor@apple.com>
Wed, 27 Apr 2011 17:07:55 +0000 (17:07 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 27 Apr 2011 17:07:55 +0000 (17:07 +0000)
pack expansion. Fixes PR9452.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130310 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/DeclPrinter.cpp

index 973ac6d5af9c6b2dcf1532bc4c4a5e7668e4357b..556fc72cec2e15576b3deca822444ce4547c773f 100644 (file)
@@ -650,6 +650,9 @@ void DeclPrinter::VisitCXXRecordDecl(CXXRecordDecl *D) {
         if (AS != AS_none)
           Print(AS);
         Out << " " << Base->getType().getAsString(Policy);
+
+        if (Base->isPackExpansion())
+          Out << "...";
       }
     }