• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/clang/lib/Frontend/Rewrite/

Lines Matching defs:ResultStr

273                                ObjCMethodDecl *MDecl, std::string &ResultStr);
274 void RewriteTypeIntoString(QualType T, std::string &ResultStr,
276 void RewriteByRefString(std::string &ResultStr, const std::string &Name,
1039 void RewriteObjC::RewriteTypeIntoString(QualType T, std::string &ResultStr,
1042 ResultStr += "id";
1054 ResultStr +=
1056 ResultStr += "(*";
1059 ResultStr += T.getAsString(Context->getPrintingPolicy());
1064 std::string &ResultStr) {
1067 ResultStr += "\nstatic ";
1068 RewriteTypeIntoString(OMD->getReturnType(), ResultStr, FPRetType);
1069 ResultStr += " ";
1098 ResultStr += NameStr;
1101 ResultStr += "(";
1109 ResultStr += "struct ";
1112 ResultStr += IDecl->getNameAsString();
1113 ResultStr += " *";
1116 ResultStr += Context->getObjCClassType().getAsString(
1119 ResultStr += " self, ";
1120 ResultStr += Context->getObjCSelType().getAsString(Context->getPrintingPolicy());
1121 ResultStr += " _cmd";
1125 ResultStr += ", ";
1127 ResultStr += "id ";
1128 ResultStr += PDecl->getNameAsString();
1135 ResultStr += Name;
1139 ResultStr += ", ...";
1140 ResultStr += ") ";
1143 ResultStr += ")"; // close the precedence "scope" for "*".
1147 ResultStr += "(";
1149 if (i) ResultStr += ", ";
1152 ResultStr += ParamStr;
1156 ResultStr += ", ";
1157 ResultStr += "...";
1159 ResultStr += ")";
1161 ResultStr += "()";
1176 std::string ResultStr;
1177 RewriteObjCMethodDecl(OMD->getClassInterface(), OMD, ResultStr);
1183 ReplaceText(LocStart, endBuf-startBuf, ResultStr);
1189 std::string ResultStr;
1190 RewriteObjCMethodDecl(OMD->getClassInterface(), OMD, ResultStr);
1196 ReplaceText(LocStart, endBuf-startBuf, ResultStr);
1205 std::string ResultStr;
1208 ResultStr = "#ifndef _REWRITER_typedef_";
1209 ResultStr += ClassDecl->getNameAsString();
1210 ResultStr += "\n";
1211 ResultStr += "#define _REWRITER_typedef_";
1212 ResultStr += ClassDecl->getNameAsString();
1213 ResultStr += "\n";
1214 ResultStr += "typedef struct objc_object ";
1215 ResultStr += ClassDecl->getNameAsString();
1216 ResultStr += ";\n#endif\n";
1220 RewriteObjCInternalStruct(ClassDecl, ResultStr);
3242 void RewriteObjC::RewriteByRefString(std::string &ResultStr,
3248 ResultStr += "struct ";
3249 ResultStr += "__Block_byref_" + Name +
4938 std::string ResultStr;
4939 RewriteMetaDataIntoBuffer(ResultStr);
4941 *OutFile << ResultStr;