Lines Matching defs:ResultStr
271 ObjCMethodDecl *MDecl, std::string &ResultStr);
272 void RewriteTypeIntoString(QualType T, std::string &ResultStr,
274 void RewriteByRefString(std::string &ResultStr, const std::string &Name,
1038 void RewriteObjC::RewriteTypeIntoString(QualType T, std::string &ResultStr,
1041 ResultStr += "id";
1053 ResultStr +=
1055 ResultStr += "(*";
1058 ResultStr += T.getAsString(Context->getPrintingPolicy());
1063 std::string &ResultStr) {
1066 ResultStr += "\nstatic ";
1067 RewriteTypeIntoString(OMD->getReturnType(), ResultStr, FPRetType);
1068 ResultStr += " ";
1097 ResultStr += NameStr;
1100 ResultStr += "(";
1108 ResultStr += "struct ";
1111 ResultStr += IDecl->getNameAsString();
1112 ResultStr += " *";
1115 ResultStr += Context->getObjCClassType().getAsString(
1118 ResultStr += " self, ";
1119 ResultStr += Context->getObjCSelType().getAsString(Context->getPrintingPolicy());
1120 ResultStr += " _cmd";
1124 ResultStr += ", ";
1126 ResultStr += "id ";
1127 ResultStr += PDecl->getNameAsString();
1134 ResultStr += Name;
1138 ResultStr += ", ...";
1139 ResultStr += ") ";
1142 ResultStr += ")"; // close the precedence "scope" for "*".
1146 ResultStr += "(";
1148 if (i) ResultStr += ", ";
1151 ResultStr += ParamStr;
1155 ResultStr += ", ";
1156 ResultStr += "...";
1158 ResultStr += ")";
1160 ResultStr += "()";
1175 std::string ResultStr;
1176 RewriteObjCMethodDecl(OMD->getClassInterface(), OMD, ResultStr);
1182 ReplaceText(LocStart, endBuf-startBuf, ResultStr);
1188 std::string ResultStr;
1189 RewriteObjCMethodDecl(OMD->getClassInterface(), OMD, ResultStr);
1195 ReplaceText(LocStart, endBuf-startBuf, ResultStr);
1204 std::string ResultStr;
1207 ResultStr = "#ifndef _REWRITER_typedef_";
1208 ResultStr += ClassDecl->getNameAsString();
1209 ResultStr += "\n";
1210 ResultStr += "#define _REWRITER_typedef_";
1211 ResultStr += ClassDecl->getNameAsString();
1212 ResultStr += "\n";
1213 ResultStr += "typedef struct objc_object ";
1214 ResultStr += ClassDecl->getNameAsString();
1215 ResultStr += ";\n#endif\n";
1219 RewriteObjCInternalStruct(ClassDecl, ResultStr);
3233 void RewriteObjC::RewriteByRefString(std::string &ResultStr,
3239 ResultStr += "struct ";
3240 ResultStr += "__Block_byref_" + Name +
4911 std::string ResultStr;
4912 RewriteMetaDataIntoBuffer(ResultStr);
4914 *OutFile << ResultStr;