Home | History | Annotate | Download | only in Checkers

Lines Matching defs:FName

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