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 | 77b713b5d3c96e8759713769e5b2fefabc49079c (patch) | |
tree | 7a7b5bff065ec4a47eeb7f85d55ca77f476785da /clang/Driver/RewriteTest.cpp | |
parent | 8d720d083addbd7af8d9b831ac0879f904680bee (diff) | |
download | bcm5719-llvm-77b713b5d3c96e8759713769e5b2fefabc49079c.tar.gz bcm5719-llvm-77b713b5d3c96e8759713769e5b2fefabc49079c.zip |
Also fixed similar regression for class methods, as well as more indentations.
llvm-svn: 45107
Diffstat (limited to 'clang/Driver/RewriteTest.cpp')
-rw-r--r-- | clang/Driver/RewriteTest.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/clang/Driver/RewriteTest.cpp b/clang/Driver/RewriteTest.cpp index 87ebef4e878..37f2901ad26 100644 --- a/clang/Driver/RewriteTest.cpp +++ b/clang/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); |