Lines Matching defs:FName
858 static bool isRetain(const FunctionDecl *FD, StringRef FName) {
859 return FName.endswith("Retain");
862 static bool isRelease(const FunctionDecl *FD, StringRef FName) {
863 return FName.endswith("Release");
866 static bool isAutorelease(const FunctionDecl *FD, StringRef FName) {
867 return FName.endswith("Autorelease");
870 static bool isMakeCollectable(const FunctionDecl *FD, StringRef FName) {
873 return FName.find("MakeCollectable") != StringRef::npos;
1026 StringRef FName = II->getName();
1030 FName = FName.substr(FName.find_first_not_of('_'));
1039 if (FName == "pthread_create" || FName == "pthread_setspecific") {
1043 } else if (FName == "NSMakeCollectable") {
1051 } else if (FName == "CFPlugInInstanceCreate") {
1053 } else if (FName == "IOBSDNameMatching" ||
1054 FName == "IOServiceMatching" ||
1055 FName == "IOServiceNameMatching" ||
1056 FName == "IORegistryEntrySearchCFProperty" ||
1057 FName == "IORegistryEntryIDMatching" ||
1058 FName == "IOOpenFirmwarePathMatching") {
1063 } else if (FName == "IOServiceGetMatchingService" ||
1064 FName == "IOServiceGetMatchingServices") {
1070 } else if (FName == "IOServiceAddNotification" ||
1071 FName == "IOServiceAddMatchingNotification") {
1076 } else if (FName == "CVPixelBufferCreateWithBytes") {
1085 } else if (FName == "CGBitmapContextCreateWithData") {
1093 } else if (FName == "CVPixelBufferCreateWithPlanarBytes") {
1101 } else if (FName == "dispatch_set_context" ||
1102 FName == "xpc_connection_set_context") {
1111 } else if (FName.startswith("NSLog")) {
1113 } else if (FName.startswith("NS") &&
1114 (FName.find("Insert") != StringRef::npos)) {
1128 if (cocoa::isRefType(RetTy, "CF", FName)) {
1129 if (isRetain(FD, FName)) {
1131 } else if (isAutorelease(FD, FName)) {
1136 } else if (isMakeCollectable(FD, FName)) {
1147 if (cocoa::isRefType(RetTy, "CG", FName)) {
1148 if (isRetain(FD, FName))
1174 if (FName[0] == 'C' && (FName[1] == 'F' || FName[1] == 'G')) {
1176 FName = FName.substr(FName.startswith("CGCF") ? 4 : 2);
1178 if (isRelease(FD, FName))
1197 ArgEffect E = (StrInStrNoCase(FName, "InsertValue") != StringRef::npos||
1198 StrInStrNoCase(FName, "AddValue") != StringRef::npos ||
1199 StrInStrNoCase(FName, "SetValue") != StringRef::npos ||
1200 StrInStrNoCase(FName, "AppendValue") != StringRef::npos||
1201 StrInStrNoCase(FName, "SetAttribute") != StringRef::npos)
3227 StringRef FName = II->getName();
3228 FName = FName.substr(FName.find_first_not_of('_'));
3242 if (cocoa::isRefType(ResultTy, "CF", FName) ||
3243 cocoa::isRefType(ResultTy, "CG", FName)) {
3244 canEval = isRetain(FD, FName) || isAutorelease(FD, FName) ||
3245 isMakeCollectable(FD, FName);