Home | History | Annotate | Download | only in Checkers

Lines Matching defs:FName

875 static bool isRetain(const FunctionDecl *FD, StringRef FName) {
876 return FName.endswith("Retain");
879 static bool isRelease(const FunctionDecl *FD, StringRef FName) {
880 return FName.endswith("Release");
883 static bool isMakeCollectable(const FunctionDecl *FD, StringRef FName) {
886 return FName.find("MakeCollectable") != StringRef::npos;
919 StringRef FName = II->getName();
923 FName = FName.substr(FName.find_first_not_of('_'));
932 if (FName == "pthread_create") {
936 } else if (FName == "NSMakeCollectable") {
941 } else if (FName == "IOBSDNameMatching" ||
942 FName == "IOServiceMatching" ||
943 FName == "IOServiceNameMatching" ||
944 FName == "IORegistryEntryIDMatching" ||
945 FName == "IOOpenFirmwarePathMatching") {
950 } else if (FName == "IOServiceGetMatchingService" ||
951 FName == "IOServiceGetMatchingServices") {
957 } else if (FName == "IOServiceAddNotification" ||
958 FName == "IOServiceAddMatchingNotification") {
963 } else if (FName == "CVPixelBufferCreateWithBytes") {
972 } else if (FName == "CGBitmapContextCreateWithData") {
980 } else if (FName == "CVPixelBufferCreateWithPlanarBytes") {
988 } else if (FName == "dispatch_set_context") {
996 } else if (FName.startswith("NS") &&
997 (FName.find("Insert") != StringRef::npos)) {
1014 if (strcmp(FName, "NSDeallocateObject") == 0) {
1023 if (cocoa::isRefType(RetTy, "CF", FName)) {
1024 if (isRetain(FD, FName))
1026 else if (isMakeCollectable(FD, FName))
1035 if (cocoa::isRefType(RetTy, "CG", FName)) {
1036 if (isRetain(FD, FName))
1057 if (FName[0] == 'C' && (FName[1] == 'F' || FName[1] == 'G')) {
1059 FName = FName.substr(FName.startswith("CGCF") ? 4 : 2);
1061 if (isRelease(FD, FName))
1080 ArgEffect E = (StrInStrNoCase(FName, "InsertValue") != StringRef::npos||
1081 StrInStrNoCase(FName, "AddValue") != StringRef::npos ||
1082 StrInStrNoCase(FName, "SetValue") != StringRef::npos ||
1083 StrInStrNoCase(FName, "AppendValue") != StringRef::npos||
1084 StrInStrNoCase(FName, "SetAttribute") != StringRef::npos)
3090 StringRef FName = II->getName();
3091 FName = FName.substr(FName.find_first_not_of('_'));
3104 if (cocoa::isRefType(ResultTy, "CF", FName) ||
3105 cocoa::isRefType(ResultTy, "CG", FName)) {
3106 canEval = isRetain(FD, FName) || isMakeCollectable(FD, FName);