Home | History | Annotate | Download | only in Checkers

Lines Matching defs:FName

884 static bool isRetain(const FunctionDecl *FD, StringRef FName) {
885 return FName.endswith("Retain");
888 static bool isRelease(const FunctionDecl *FD, StringRef FName) {
889 return FName.endswith("Release");
892 static bool isAutorelease(const FunctionDecl *FD, StringRef FName) {
893 return FName.endswith("Autorelease");
896 static bool isMakeCollectable(const FunctionDecl *FD, StringRef FName) {
899 return FName.find("MakeCollectable") != StringRef::npos;
1053 StringRef FName = II->getName();
1057 FName = FName.substr(FName.find_first_not_of('_'));
1066 if (FName == "pthread_create" || FName == "pthread_setspecific") {
1070 } else if (FName == "NSMakeCollectable") {
1078 } else if (FName == "CFPlugInInstanceCreate") {
1080 } else if (FName == "IOBSDNameMatching" ||
1081 FName == "IOServiceMatching" ||
1082 FName == "IOServiceNameMatching" ||
1083 FName == "IORegistryEntrySearchCFProperty" ||
1084 FName == "IORegistryEntryIDMatching" ||
1085 FName == "IOOpenFirmwarePathMatching") {
1090 } else if (FName == "IOServiceGetMatchingService" ||
1091 FName == "IOServiceGetMatchingServices") {
1097 } else if (FName == "IOServiceAddNotification" ||
1098 FName == "IOServiceAddMatchingNotification") {
1103 } else if (FName == "CVPixelBufferCreateWithBytes") {
1112 } else if (FName == "CGBitmapContextCreateWithData") {
1120 } else if (FName == "CVPixelBufferCreateWithPlanarBytes") {
1128 } else if (FName == "dispatch_set_context" ||
1129 FName == "xpc_connection_set_context") {
1138 } else if (FName.startswith("NSLog")) {
1140 } else if (FName.startswith("NS") &&
1141 (FName.find("Insert") != StringRef::npos)) {
1155 if (cocoa::isRefType(RetTy, "CF", FName)) {
1156 if (isRetain(FD, FName)) {
1158 } else if (isAutorelease(FD, FName)) {
1163 } else if (isMakeCollectable(FD, FName)) {
1174 if (cocoa::isRefType(RetTy, "CG", FName)) {
1175 if (isRetain(FD, FName))
1201 if (FName[0] == 'C' && (FName[1] == 'F' || FName[1] == 'G')) {
1203 FName = FName.substr(FName.startswith("CGCF") ? 4 : 2);
1205 if (isRelease(FD, FName))
1224 ArgEffect E = (StrInStrNoCase(FName, "InsertValue") != StringRef::npos||
1225 StrInStrNoCase(FName, "AddValue") != StringRef::npos ||
1226 StrInStrNoCase(FName, "SetValue") != StringRef::npos ||
1227 StrInStrNoCase(FName, "AppendValue") != StringRef::npos||
1228 StrInStrNoCase(FName, "SetAttribute") != StringRef::npos)
3371 StringRef FName = II->getName();
3372 FName = FName.substr(FName.find_first_not_of('_'));
3386 if (cocoa::isRefType(ResultTy, "CF", FName) ||
3387 cocoa::isRefType(ResultTy, "CG", FName)) {
3388 canEval = isRetain(FD, FName) || isAutorelease(FD, FName) ||
3389 isMakeCollectable(FD, FName);