]> granicus.if.org Git - clang/commitdiff
Synthesize methods with va-arg list correctly.
authorFariborz Jahanian <fjahanian@apple.com>
Mon, 21 Jan 2008 20:14:23 +0000 (20:14 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Mon, 21 Jan 2008 20:14:23 +0000 (20:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46212 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/RewriteTest.cpp
test/Sema/va-method.m

index b111e09a32b42e0a2aeafe6dcef4940bc46ba380..c1243b91eddadce6751ce8c292f94253d40276cc 100644 (file)
@@ -606,6 +606,8 @@ void RewriteTest::RewriteObjCMethodDecl(ObjCMethodDecl *OMD,
     ResultStr += " ";
     ResultStr += PDecl->getName();
   }
+  if (OMD->isVariadic())
+    ResultStr += ", ...";
   ResultStr += ") ";
   
 }
index a8a70530431832b0e080e46e6a3e90d9a504b230..1393af1eb262dbe2e9bfc2234752b90e17738b97 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang -fsyntax-only -verify %s
+// RUN: clang -rewrite-test %s | clang
 
 #include <stdarg.h>