Home | History | Annotate | Download | only in Checkers

Lines Matching defs:FName

883 static bool isRetain(const FunctionDecl *FD, StringRef FName) {
884 return FName.endswith("Retain");
887 static bool isRelease(const FunctionDecl *FD, StringRef FName) {
888 return FName.endswith("Release");
891 static bool isAutorelease(const FunctionDecl *FD, StringRef FName) {
892 return FName.endswith("Autorelease");
895 static bool isMakeCollectable(const FunctionDecl *FD, StringRef FName) {
898 return FName.find("MakeCollectable") != StringRef::npos;
1051 StringRef FName = II->getName();
1055 FName = FName.substr(FName.find_first_not_of('_'));
1064 if (FName == "pthread_create" || FName == "pthread_setspecific") {
1068 } else if (FName == "NSMakeCollectable") {
1076 } else if (FName == "CFPlugInInstanceCreate") {
1078 } else if (FName == "IOBSDNameMatching" ||
1079 FName == "IOServiceMatching" ||
1080 FName == "IOServiceNameMatching" ||
1081 FName == "IORegistryEntrySearchCFProperty" ||
1082 FName == "IORegistryEntryIDMatching" ||
1083 FName == "IOOpenFirmwarePathMatching") {
1088 } else if (FName == "IOServiceGetMatchingService" ||
1089 FName == "IOServiceGetMatchingServices") {
1095 } else if (FName == "IOServiceAddNotification" ||
1096 FName == "IOServiceAddMatchingNotification") {
1101 } else if (FName == "CVPixelBufferCreateWithBytes") {
1110 } else if (FName == "CGBitmapContextCreateWithData") {
1118 } else if (FName == "CVPixelBufferCreateWithPlanarBytes") {
1126 } else if (FName == "dispatch_set_context" ||
1127 FName == "xpc_connection_set_context") {
1136 } else if (FName.startswith("NSLog")) {
1138 } else if (FName.startswith("NS") &&
1139 (FName.find("Insert") != StringRef::npos)) {
1153 if (cocoa::isRefType(RetTy, "CF", FName)) {
1154 if (isRetain(FD, FName)) {
1156 } else if (isAutorelease(FD, FName)) {
1161 } else if (isMakeCollectable(FD, FName)) {
1172 if (cocoa::isRefType(RetTy, "CG", FName)) {
1173 if (isRetain(FD, FName))
1199 if (FName[0] == 'C' && (FName[1] == 'F' || FName[1] == 'G')) {
1201 FName = FName.substr(FName.startswith("CGCF") ? 4 : 2);
1203 if (isRelease(FD, FName))
1222 ArgEffect E = (StrInStrNoCase(FName, "InsertValue") != StringRef::npos||
1223 StrInStrNoCase(FName, "AddValue") != StringRef::npos ||
1224 StrInStrNoCase(FName, "SetValue") != StringRef::npos ||
1225 StrInStrNoCase(FName, "AppendValue") != StringRef::npos||
1226 StrInStrNoCase(FName, "SetAttribute") != StringRef::npos)
3309 StringRef FName = II->getName();
3310 FName = FName.substr(FName.find_first_not_of('_'));
3324 if (cocoa::isRefType(ResultTy, "CF", FName) ||
3325 cocoa::isRefType(ResultTy, "CG", FName)) {
3326 canEval = isRetain(FD, FName) || isAutorelease(FD, FName) ||
3327 isMakeCollectable(FD, FName);