diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2007-12-17 18:07:01 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2007-12-17 18:07:01 +0000 |
commit | c6e2c2abd65c39e93c7f51e55f2dae81fe8f2c4c (patch) | |
tree | 500b4f18befc94edadb02f82616eacdc42e6f92e /Driver/RewriteTest.cpp | |
parent | 3af66a9335966e9114e660cf7aafbb9272190ec2 (diff) |
Also fixed similar regression for class methods, as well as more indentations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45107 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/RewriteTest.cpp')
-rw-r--r-- | Driver/RewriteTest.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Driver/RewriteTest.cpp b/Driver/RewriteTest.cpp index 87ebef4e87..37f2901ad2 100644 --- a/Driver/RewriteTest.cpp +++ b/Driver/RewriteTest.cpp @@ -1884,10 +1884,13 @@ void RewriteTest::RewriteObjcProtocolsMetaData(ObjcProtocolDecl **Protocols, Result += utostr(NumMethods); Result += "\n"; - // Output instance methods declared in this protocol. - for (ObjcProtocolDecl::classmeth_iterator I = PDecl->classmeth_begin(), - E = PDecl->classmeth_end(); I != E; ++I) { - Result += "\t ,{(SEL)\""; + // Output instance methods declared in this protocol. + for (ObjcProtocolDecl::classmeth_iterator I = PDecl->classmeth_begin(), + E = PDecl->classmeth_end(); I != E; ++I) { + if (I == PDecl->classmeth_begin()) + Result += "\t ,{{(SEL)\""; + else + Result += "\t ,{(SEL)\""; Result += (*I)->getSelector().getName().c_str(); std::string MethodTypeString; Context->getObjcEncodingForMethodDecl((*I), MethodTypeString); |