[cfe-commits] r39263 - /cfe/cfe/trunk/Driver/clang.cpp
sabre at cs.uiuc.edu
sabre at cs.uiuc.edu
Wed Jul 11 09:42:08 PDT 2007
Author: sabre
Date: Wed Jul 11 11:42:08 2007
New Revision: 39263
URL: http://llvm.org/viewvc/llvm-project?rev=39263&view=rev
Log:
pretty print ... as well
Modified:
cfe/cfe/trunk/Driver/clang.cpp
Modified: cfe/cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Driver/clang.cpp?rev=39263&r1=39262&r2=39263&view=diff
==============================================================================
--- cfe/cfe/trunk/Driver/clang.cpp (original)
+++ cfe/cfe/trunk/Driver/clang.cpp Wed Jul 11 11:42:08 2007
@@ -826,6 +826,11 @@
FT->getArgType(i).getAsString(ParamStr);
Proto += ParamStr;
}
+
+ if (FT->isVariadic()) {
+ if (FD->getNumParams()) Proto += ", ";
+ Proto += "...";
+ }
Proto += ")";
FT->getResultType().getAsString(Proto);
More information about the cfe-commits
mailing list