diff options
author | Steve Naroff <snaroff@apple.com> | 2007-11-11 17:19:15 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2007-11-11 17:19:15 +0000 |
commit | 0416fb9f379b49abb3eb0c1cb2ca75107e5a71d1 (patch) | |
tree | bb9c9236a7ba43f551a2e19a7ba7652d905e3f84 /Driver/RewriteTest.cpp | |
parent | d848a3867794f4a9297bced70178834936e59d3d (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43995 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/RewriteTest.cpp')
-rw-r--r-- | Driver/RewriteTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Driver/RewriteTest.cpp b/Driver/RewriteTest.cpp index b74faf5b69..a0a11470dc 100644 --- a/Driver/RewriteTest.cpp +++ b/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, |