diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-09-24 18:36:58 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-09-24 18:36:58 +0000 |
commit | 07acdf4c776fd98e315bc1de380af8ba3c25559e (patch) | |
tree | d685d7ba6afc13825e5583b07e81c1287bda4923 /lib/Rewrite/RewriteObjC.cpp | |
parent | 745da3a5bb4ea35f93f50301e7fbbb7d78d3b6bb (diff) |
Fix rewriting of property declared in @protocol's.
Fixed //rdar://8472487.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114741 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Rewrite/RewriteObjC.cpp')
-rw-r--r-- | lib/Rewrite/RewriteObjC.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Rewrite/RewriteObjC.cpp b/lib/Rewrite/RewriteObjC.cpp index 578a063614..dd6cf93a39 100644 --- a/lib/Rewrite/RewriteObjC.cpp +++ b/lib/Rewrite/RewriteObjC.cpp @@ -962,6 +962,10 @@ void RewriteObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) { I != E; ++I) RewriteMethodDeclaration(*I); + for (ObjCInterfaceDecl::prop_iterator I = PDecl->prop_begin(), + E = PDecl->prop_end(); I != E; ++I) + RewriteProperty(*I); + // Lastly, comment out the @end. SourceLocation LocEnd = PDecl->getAtEndRange().getBegin(); ReplaceText(LocEnd, strlen("@end"), "/* @end */"); |