[cfe-commits] r130310 - /cfe/trunk/lib/AST/DeclPrinter.cpp
Douglas Gregor
dgregor at apple.com
Wed Apr 27 10:07:55 PDT 2011
Author: dgregor
Date: Wed Apr 27 12:07:55 2011
New Revision: 130310
URL: http://llvm.org/viewvc/llvm-project?rev=130310&view=rev
Log:
When printing a base-specifier, print the ellipsis ("...") if it is a
pack expansion. Fixes PR9452.
Modified:
cfe/trunk/lib/AST/DeclPrinter.cpp
Modified: cfe/trunk/lib/AST/DeclPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclPrinter.cpp?rev=130310&r1=130309&r2=130310&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclPrinter.cpp (original)
+++ cfe/trunk/lib/AST/DeclPrinter.cpp Wed Apr 27 12:07:55 2011
@@ -650,6 +650,9 @@
if (AS != AS_none)
Print(AS);
Out << " " << Base->getType().getAsString(Policy);
+
+ if (Base->isPackExpansion())
+ Out << "...";
}
}
More information about the cfe-commits
mailing list