[cfe-commits] r46212 - in /cfe/trunk: Driver/RewriteTest.cpp test/Sema/va-method.m
Fariborz Jahanian
fjahanian at apple.com
Mon Jan 21 12:14:24 PST 2008
Author: fjahanian
Date: Mon Jan 21 14:14:23 2008
New Revision: 46212
URL: http://llvm.org/viewvc/llvm-project?rev=46212&view=rev
Log:
Synthesize methods with va-arg list correctly.
Modified:
cfe/trunk/Driver/RewriteTest.cpp
cfe/trunk/test/Sema/va-method.m
Modified: cfe/trunk/Driver/RewriteTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/RewriteTest.cpp?rev=46212&r1=46211&r2=46212&view=diff
==============================================================================
--- cfe/trunk/Driver/RewriteTest.cpp (original)
+++ cfe/trunk/Driver/RewriteTest.cpp Mon Jan 21 14:14:23 2008
@@ -606,6 +606,8 @@
ResultStr += " ";
ResultStr += PDecl->getName();
}
+ if (OMD->isVariadic())
+ ResultStr += ", ...";
ResultStr += ") ";
}
Modified: cfe/trunk/test/Sema/va-method.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/va-method.m?rev=46212&r1=46211&r2=46212&view=diff
==============================================================================
--- cfe/trunk/test/Sema/va-method.m (original)
+++ cfe/trunk/test/Sema/va-method.m Mon Jan 21 14:14:23 2008
@@ -1,4 +1,4 @@
-// RUN: clang -fsyntax-only -verify %s
+// RUN: clang -rewrite-test %s | clang
#include <stdarg.h>
More information about the cfe-commits
mailing list