• Home
  • Raw
  • Download

Lines Matching refs:FName

885 static bool isRetain(const FunctionDecl *FD, StringRef FName) {  in isRetain()  argument
886 return FName.endswith("Retain"); in isRetain()
889 static bool isRelease(const FunctionDecl *FD, StringRef FName) { in isRelease() argument
890 return FName.endswith("Release"); in isRelease()
893 static bool isAutorelease(const FunctionDecl *FD, StringRef FName) { in isAutorelease() argument
894 return FName.endswith("Autorelease"); in isAutorelease()
897 static bool isMakeCollectable(const FunctionDecl *FD, StringRef FName) { in isMakeCollectable() argument
900 return FName.find("MakeCollectable") != StringRef::npos; in isMakeCollectable()
1054 StringRef FName = II->getName(); in getFunctionSummary() local
1058 FName = FName.substr(FName.find_first_not_of('_')); in getFunctionSummary()
1067 if (FName == "pthread_create" || FName == "pthread_setspecific") { in getFunctionSummary()
1071 } else if (FName == "NSMakeCollectable") { in getFunctionSummary()
1079 } else if (FName == "CFPlugInInstanceCreate") { in getFunctionSummary()
1081 } else if (FName == "IOBSDNameMatching" || in getFunctionSummary()
1082 FName == "IOServiceMatching" || in getFunctionSummary()
1083 FName == "IOServiceNameMatching" || in getFunctionSummary()
1084 FName == "IORegistryEntrySearchCFProperty" || in getFunctionSummary()
1085 FName == "IORegistryEntryIDMatching" || in getFunctionSummary()
1086 FName == "IOOpenFirmwarePathMatching") { in getFunctionSummary()
1091 } else if (FName == "IOServiceGetMatchingService" || in getFunctionSummary()
1092 FName == "IOServiceGetMatchingServices") { in getFunctionSummary()
1098 } else if (FName == "IOServiceAddNotification" || in getFunctionSummary()
1099 FName == "IOServiceAddMatchingNotification") { in getFunctionSummary()
1104 } else if (FName == "CVPixelBufferCreateWithBytes") { in getFunctionSummary()
1113 } else if (FName == "CGBitmapContextCreateWithData") { in getFunctionSummary()
1121 } else if (FName == "CVPixelBufferCreateWithPlanarBytes") { in getFunctionSummary()
1129 } else if (FName == "dispatch_set_context" || in getFunctionSummary()
1130 FName == "xpc_connection_set_context") { in getFunctionSummary()
1139 } else if (FName.startswith("NSLog")) { in getFunctionSummary()
1141 } else if (FName.startswith("NS") && in getFunctionSummary()
1142 (FName.find("Insert") != StringRef::npos)) { in getFunctionSummary()
1156 if (cocoa::isRefType(RetTy, "CF", FName)) { in getFunctionSummary()
1157 if (isRetain(FD, FName)) { in getFunctionSummary()
1159 } else if (isAutorelease(FD, FName)) { in getFunctionSummary()
1164 } else if (isMakeCollectable(FD, FName)) { in getFunctionSummary()
1175 if (cocoa::isRefType(RetTy, "CG", FName)) { in getFunctionSummary()
1176 if (isRetain(FD, FName)) in getFunctionSummary()
1202 if (FName[0] == 'C' && (FName[1] == 'F' || FName[1] == 'G')) { in getFunctionSummary()
1204 FName = FName.substr(FName.startswith("CGCF") ? 4 : 2); in getFunctionSummary()
1206 if (isRelease(FD, FName)) in getFunctionSummary()
1225 ArgEffect E = (StrInStrNoCase(FName, "InsertValue") != StringRef::npos|| in getFunctionSummary()
1226 StrInStrNoCase(FName, "AddValue") != StringRef::npos || in getFunctionSummary()
1227 StrInStrNoCase(FName, "SetValue") != StringRef::npos || in getFunctionSummary()
1228 StrInStrNoCase(FName, "AppendValue") != StringRef::npos|| in getFunctionSummary()
1229 StrInStrNoCase(FName, "SetAttribute") != StringRef::npos) in getFunctionSummary()
3364 StringRef FName = II->getName(); in evalCall() local
3365 FName = FName.substr(FName.find_first_not_of('_')); in evalCall()
3379 if (cocoa::isRefType(ResultTy, "CF", FName) || in evalCall()
3380 cocoa::isRefType(ResultTy, "CG", FName)) { in evalCall()
3381 canEval = isRetain(FD, FName) || isAutorelease(FD, FName) || in evalCall()
3382 isMakeCollectable(FD, FName); in evalCall()