Home | History | Annotate | Download | only in Rewrite

Lines Matching refs:ResultStr

278                                ObjCMethodDecl *MDecl, std::string &ResultStr);
279 void RewriteTypeIntoString(QualType T, std::string &ResultStr,
281 void RewriteByRefString(std::string &ResultStr, const std::string &Name,
1044 void RewriteObjC::RewriteTypeIntoString(QualType T, std::string &ResultStr,
1047 ResultStr += "id";
1059 ResultStr += FPRetType->getResultType().getAsString(
1061 ResultStr += "(*";
1064 ResultStr += T.getAsString(Context->getPrintingPolicy());
1069 std::string &ResultStr) {
1072 ResultStr += "\nstatic ";
1073 RewriteTypeIntoString(OMD->getResultType(), ResultStr, FPRetType);
1074 ResultStr += " ";
1103 ResultStr += NameStr;
1106 ResultStr += "(";
1114 ResultStr += "struct ";
1117 ResultStr += IDecl->getNameAsString();
1118 ResultStr += " *";
1121 ResultStr += Context->getObjCClassType().getAsString(
1124 ResultStr += " self, ";
1125 ResultStr += Context->getObjCSelType().getAsString(Context->getPrintingPolicy());
1126 ResultStr += " _cmd";
1132 ResultStr += ", ";
1134 ResultStr += "id ";
1135 ResultStr += PDecl->getNameAsString();
1142 ResultStr += Name;
1146 ResultStr += ", ...";
1147 ResultStr += ") ";
1150 ResultStr += ")"; // close the precedence "scope" for "*".
1154 ResultStr += "(";
1156 if (i) ResultStr += ", ";
1159 ResultStr += ParamStr;
1162 if (FT->getNumArgs()) ResultStr += ", ";
1163 ResultStr += "...";
1165 ResultStr += ")";
1167 ResultStr += "()";
1181 std::string ResultStr;
1183 RewriteObjCMethodDecl(OMD->getClassInterface(), OMD, ResultStr);
1189 ReplaceText(LocStart, endBuf-startBuf, ResultStr);
1196 std::string ResultStr;
1198 RewriteObjCMethodDecl(OMD->getClassInterface(), OMD, ResultStr);
1204 ReplaceText(LocStart, endBuf-startBuf, ResultStr);
1217 std::string ResultStr;
1220 ResultStr = "#ifndef _REWRITER_typedef_";
1221 ResultStr += ClassDecl->getNameAsString();
1222 ResultStr += "\n";
1223 ResultStr += "#define _REWRITER_typedef_";
1224 ResultStr += ClassDecl->getNameAsString();
1225 ResultStr += "\n";
1226 ResultStr += "typedef struct objc_object ";
1227 ResultStr += ClassDecl->getNameAsString();
1228 ResultStr += ";\n#endif\n";
1232 RewriteObjCInternalStruct(ClassDecl, ResultStr);
3310 void RewriteObjC::RewriteByRefString(std::string &ResultStr,
3316 ResultStr += "struct ";
3317 ResultStr += "__Block_byref_" + Name +
5047 std::string ResultStr;
5048 RewriteMetaDataIntoBuffer(ResultStr);
5050 *OutFile << ResultStr;