[cfe-commits] r45107 - /cfe/trunk/Driver/RewriteTest.cpp
Fariborz Jahanian
fjahanian at apple.com
Mon Dec 17 10:07:01 PST 2007
Author: fjahanian
Date: Mon Dec 17 12:07:01 2007
New Revision: 45107
URL: http://llvm.org/viewvc/llvm-project?rev=45107&view=rev
Log:
Also fixed similar regression for class methods, as well as more indentations.
Modified:
cfe/trunk/Driver/RewriteTest.cpp
Modified: cfe/trunk/Driver/RewriteTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/RewriteTest.cpp?rev=45107&r1=45106&r2=45107&view=diff
==============================================================================
--- cfe/trunk/Driver/RewriteTest.cpp (original)
+++ cfe/trunk/Driver/RewriteTest.cpp Mon Dec 17 12:07:01 2007
@@ -1884,10 +1884,13 @@
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);
More information about the cfe-commits
mailing list