From cac26f4f5f576734d38de610670c712963c09684 Mon Sep 17 00:00:00 2001 From: Steve Naroff Date: Sun, 11 Nov 2007 17:19:15 +0000 Subject: This is the last 5% of the solution to teaching Sema::ActOnInstanceMessage() about private methods (r43989). While the diff is large, the idea is very simple. When we parse method definitions (in an @implementation), we need to add them incrementally (rather than wait until the @end). Other details... - Renamed Sema::ActOnAddMethodsToObjcDecl() to Sema::ActOnAtEnd(). The methods are now optional arguments. - Removed Parser::AllImplMethods (a nice cleanup). - Added location info to ObjcImplementationDecl (since we will need it very soon:-) - Modified message.m test to no longer allow the bogus diagnostic. llvm-svn: 43995 --- clang/Driver/RewriteTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/Driver/RewriteTest.cpp') diff --git a/clang/Driver/RewriteTest.cpp b/clang/Driver/RewriteTest.cpp index b74faf5b691..a0a11470dc5 100644 --- a/clang/Driver/RewriteTest.cpp +++ b/clang/Driver/RewriteTest.cpp @@ -118,7 +118,7 @@ namespace { void RewriteObjcCategoryImplDecl(ObjcCategoryImplDecl *CDecl, std::string &Result); - void RewriteObjcMethodsMetaData(ObjcMethodDecl **Methods, + void RewriteObjcMethodsMetaData(ObjcMethodDecl *const*Methods, int NumMethods, bool IsInstanceMethod, const char *prefix, @@ -1039,7 +1039,7 @@ void RewriteTest::SynthesizeObjcInternalStruct(ObjcInterfaceDecl *CDecl, // RewriteObjcMethodsMetaData - Rewrite methods metadata for instance or /// class methods. -void RewriteTest::RewriteObjcMethodsMetaData(ObjcMethodDecl **Methods, +void RewriteTest::RewriteObjcMethodsMetaData(ObjcMethodDecl *const*Methods, int NumMethods, bool IsInstanceMethod, const char *prefix, -- cgit v1.2.3