| /llvm-project-15.0.7/lldb/source/Host/macosx/cfcpp/ |
| H A D | CFCMutableDictionary.h | 30 bool AddValue(CFStringRef key, const void *value, bool can_create = false); 31 bool SetValue(CFStringRef key, const void *value, bool can_create = false); 32 bool AddValueSInt8(CFStringRef key, int8_t value, bool can_create = false); 33 bool SetValueSInt8(CFStringRef key, int8_t value, bool can_create = false); 34 bool AddValueSInt16(CFStringRef key, int16_t value, bool can_create = false); 35 bool SetValueSInt16(CFStringRef key, int16_t value, bool can_create = false); 36 bool AddValueSInt32(CFStringRef key, int32_t value, bool can_create = false); 40 bool AddValueUInt8(CFStringRef key, uint8_t value, bool can_create = false); 41 bool SetValueUInt8(CFStringRef key, uint8_t value, bool can_create = false); 50 bool AddValueCString(CFStringRef key, const char *cstr, [all …]
|
| H A D | CFCString.cpp | 14 CFCString::CFCString(CFStringRef s) : CFCReleaser<CFStringRef>(s) {} in CFCString() 27 : CFCReleaser<CFStringRef>() { in CFCString() 41 CFStringRef CFCString::SetFileSystemRepresentation(const char *path) { in SetFileSystemRepresentation() 42 CFStringRef new_value = NULL; in SetFileSystemRepresentation() 50 CFStringRef 52 CFStringRef new_value = NULL; in SetFileSystemRepresentationFromCFType() 58 new_value = (CFStringRef)::CFRetain(cf_type); in SetFileSystemRepresentationFromCFType() 68 CFStringRef 89 const char *CFCString::UTF8(CFStringRef cf_str, std::string &str) { in UTF8() 126 const char *CFCString::FileSystemRepresentation(CFStringRef cf_str, in FileSystemRepresentation() [all …]
|
| H A D | CFCMutableDictionary.cpp | 91 bool CFCMutableDictionary::AddValue(CFStringRef key, const void *value, in AddValue() 102 bool CFCMutableDictionary::SetValue(CFStringRef key, const void *value, in SetValue() 113 bool CFCMutableDictionary::AddValueSInt8(CFStringRef key, int8_t value, in AddValueSInt8() 128 bool CFCMutableDictionary::SetValueSInt8(CFStringRef key, int8_t value, in SetValueSInt8() 143 bool CFCMutableDictionary::AddValueSInt16(CFStringRef key, int16_t value, in AddValueSInt16() 158 bool CFCMutableDictionary::SetValueSInt16(CFStringRef key, int16_t value, in SetValueSInt16() 173 bool CFCMutableDictionary::AddValueSInt32(CFStringRef key, int32_t value, in AddValueSInt32() 188 bool CFCMutableDictionary::SetValueSInt32(CFStringRef key, int32_t value, in SetValueSInt32() 203 bool CFCMutableDictionary::AddValueSInt64(CFStringRef key, int64_t value, in AddValueSInt64() 233 bool CFCMutableDictionary::AddValueUInt8(CFStringRef key, uint8_t value, in AddValueUInt8() [all …]
|
| H A D | CFCString.h | 16 class CFCString : public CFCReleaser<CFStringRef> { 19 CFCString(CFStringRef cf_str = NULL); 26 CFStringRef SetFileSystemRepresentation(const char *path); 27 CFStringRef SetFileSystemRepresentationFromCFType(CFTypeRef cf_type); 28 CFStringRef SetFileSystemRepresentationAndExpandTilde(const char *path); 31 static const char *UTF8(CFStringRef cf_str, std::string &str); 32 static const char *FileSystemRepresentation(CFStringRef cf_str,
|
| /llvm-project-15.0.7/clang/test/SemaObjC/ |
| H A D | arc-unbridged-cast.m | 3 typedef const struct __CFString * CFStringRef; typedef 10 @property CFStringRef property; 11 - (CFStringRef) implicitProperty; 12 - (CFStringRef) newString; 13 - (CFStringRef) makeString; 27 CFStringRef unauditedString(void); 31 CFStringRef auditedString(void); 32 CFStringRef auditedCreateString(void); 35 extern const CFStringRef kUserConst; 111 void (*taker)(CFStringRef) = 0; [all …]
|
| H A D | arc-cf.m | 10 typedef const struct __CFString *CFStringRef; typedef 12 extern CFStringRef CFMakeString0(void); 14 extern CFStringRef CFCreateString0(void); 22 extern CFStringRef CFMakeString1(void) __attribute__((cf_returns_not_retained)); 23 extern CFStringRef CFCreateString1(void) __attribute__((cf_returns_retained)); 36 extern CFStringRef CFMakeString2(void); 37 extern CFStringRef CFCreateString2(void) CF_RETURNS_NOT_RETAINED; 38 extern CFStringRef CFMakeString3(void) CF_RETURNS_RETAINED; 39 extern CFStringRef CFCreateString3(void); 53 extern SInt32 CFStringGetIntValue(CFStringRef str); // expected-note {{passing argument to paramete… [all …]
|
| H A D | illegal-nonarc-bridged-cast.m | 5 typedef const struct __CFString *CFStringRef; typedef 12 CFStringRef CFCreateString(void); 14 CFStringRef CFGetString(void); 29 …CFStringRef cf2 = (__bridge_retained CFStringRef)CreateNSString(); // expected-warning {{'__bridge… 31 CFStringRef cf4 = (__bridge CFStringRef)CreateNSString(); 49 CFStringRef c;
|
| H A D | format-cstrings-warning.m | 41 typedef const struct __CFString * CFStringRef; typedef 50 CFStringRef CFStringCreateWithFormat(CFAllocatorRef alloc, CFDictionaryRef formatOptions, CFStringR… 53 CFStringRef CFStringCreateWithFormatAndArguments(CFAllocatorRef alloc, CFDictionaryRef formatOption… 56 void CFStringAppendFormat(CFMutableStringRef theString, CFDictionaryRef formatOptions, CFStringRef … 59 …Arguments(CFMutableStringRef theString, CFDictionaryRef formatOptions, CFStringRef format, va_list… 63 …CFStringCreateWithFormatAndArguments (alloc, 0, (CFStringRef)@"%s\n", argList); // expected-warnin… 64 …CFStringAppendFormatAndArguments ((CFMutableStringRef)@"AAAA", 0, (CFStringRef)"Hello %s there %d\… 65 CFStringCreateWithFormatAndArguments (alloc, 0, (CFStringRef)@"%c\n", argList); 66 CFStringAppendFormatAndArguments ((CFMutableStringRef)@"AAAA", 0, (CFStringRef)"%d\n", argList); 70 extern void MyCFStringCreateWithFormat(CFStringRef format, ...) __attribute__((format(__CFString__,… [all …]
|
| /llvm-project-15.0.7/clang/test/SemaObjCXX/ |
| H A D | arc-unbridged-cast.mm | 3 typedef const struct __CFString * CFStringRef; typedef 10 @property CFStringRef property; 11 - (CFStringRef) implicitProperty; 12 - (CFStringRef) newString; 13 - (CFStringRef) makeString; 27 CFStringRef unauditedString(void); 31 CFStringRef auditedString(void); 32 CFStringRef auditedCreateString(void); 80 - (void) takeOrdinary: (CFStringRef) arg; argument 94 void takeCFOrdinaryAudited(CFStringRef arg); [all …]
|
| H A D | bridge-cast-redecl.mm | 5 typedef const struct __CFString * CFStringRef; typedef 8 typedef const struct __attribute__((objc_bridge(NSString))) __CFString * CFStringRef; typedef 15 void CFStringGetLength(CFStringRef theString); 18 CFStringGetLength((__bridge CFStringRef)(NSString *)0);
|
| H A D | reinterpret-cast-objc-pointertype.mm | 6 typedef const struct __CFString * CFStringRef; typedef 9 CFStringRef func() { 10 return reinterpret_cast<CFStringRef>(fRef); 13 CFStringRef fRef1;
|
| H A D | arc-objc-lifetime.mm | 4 typedef const struct __CFString * CFStringRef; typedef 16 - (CFStringRef)myString 18 CFStringRef myString = 19 …(__bridge CFStringRef) (__strong NSString *)CFBridgingRelease(); // expected-error {{explicit owne… 22 …(__bridge CFStringRef) (__autoreleasing PNSString) CFBridgingRelease(); // expected-error {{explic… 24 (__bridge CFStringRef) (AUTORELEASEPNSString) CFBridgingRelease(); // OK 26 …(__bridge CFStringRef) (typeof(__strong NSString *)) CFBridgingRelease(); // expected-error {{expl…
|
| /llvm-project-15.0.7/clang/test/ARCMT/ |
| H A D | nonobjc-to-objc-cast.m.result | 7 typedef const struct __CFString * CFStringRef; 8 extern const CFStringRef kUTTypePlainText; 9 extern const CFStringRef kUTTypeRTF; 10 extern CFStringRef kNonConst; 20 CFStringRef sref_member; 24 CFStringRef sref; 49 CFStringRef str = (__bridge CFStringRef)self; 50 CFStringRef str2 = (__bridge CFStringRef)(self); 68 CFStringRef ref = (__bridge CFStringRef)([s string]); 69 ref = (__bridge CFStringRef)[s string]; [all …]
|
| H A D | nonobjc-to-objc-cast.m | 8 extern const CFStringRef kUTTypePlainText; 9 extern const CFStringRef kUTTypeRTF; 10 extern CFStringRef kNonConst; 20 CFStringRef sref_member; 24 CFStringRef sref; 49 CFStringRef str = (CFStringRef)self; 50 CFStringRef str2 = self; 68 CFStringRef ref = [s string]; 69 ref = (CFStringRef)[s string]; 73 ref = (CFStringRef)[NSString new]; [all …]
|
| H A D | nonobjc-to-objc-cast-2.m | 5 typedef const struct __CFString * CFStringRef; typedef 11 CFStringRef sref_member; 15 CFStringRef sref; 32 …// expected-note{{use CFBridgingRelease call to transfer ownership of a +1 'CFStringRef' (aka 'con… 37 CFStringRef cfstr; 45 CFStringRef ref; 46 …ref = [(CFStringRef)[s string] retain]; // expected-error {{cast of Objective-C pointer type 'id' … 47 // expected-error {{bad receiver type 'CFStringRef' (aka 'const struct __CFString *')}} \ 52 CFStringRef f3(void) { 53 …return (CFStringRef)[[[NSString alloc] init] autorelease]; // expected-error {{it is not safe to c… [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGenObjC/ |
| H A D | arc-unbridged-cast.m | 4 typedef const struct __CFString * CFStringRef; typedef 7 @property CFStringRef P; 8 - (CFStringRef) CFMeth __attribute__((cf_returns_retained)); 9 - (CFStringRef) newSomething; 10 - (CFStringRef) P __attribute__((cf_returns_retained)); 21 - (CFStringRef) CFMeth { return 0; } 22 - (CFStringRef) newSomething { return 0; } 23 - (CFStringRef) P { return 0; } 24 - (void) setP : (CFStringRef)arg {} argument 28 CFStringRef SomeOtherFunc(void) __attribute__((cf_returns_retained)); [all …]
|
| /llvm-project-15.0.7/lldb/tools/debugserver/source/MacOSX/ |
| H A D | CFString.cpp | 18 CFString::CFString(CFStringRef s) : CFReleaser<CFStringRef>(s) {} in CFString() 31 : CFReleaser<CFStringRef>() { in CFString() 45 CFStringRef CFString::SetFileSystemRepresentation(const char *path) { in SetFileSystemRepresentation() 46 CFStringRef new_value = NULL; in SetFileSystemRepresentation() 54 CFStringRef CFString::SetFileSystemRepresentationFromCFType(CFTypeRef cf_type) { in SetFileSystemRepresentationFromCFType() 55 CFStringRef new_value = NULL; in SetFileSystemRepresentationFromCFType() 61 new_value = (CFStringRef)::CFRetain(cf_type); in SetFileSystemRepresentationFromCFType() 71 CFStringRef 93 const char *CFString::UTF8(CFStringRef cf_str, std::string &str) { in UTF8() 118 const char *CFString::FileSystemRepresentation(CFStringRef cf_str, in FileSystemRepresentation() [all …]
|
| H A D | CFString.h | 19 class CFString : public CFReleaser<CFStringRef> { 22 CFString(CFStringRef cf_str = NULL); 29 CFStringRef SetFileSystemRepresentation(const char *path); 30 CFStringRef SetFileSystemRepresentationFromCFType(CFTypeRef cf_type); 31 CFStringRef SetFileSystemRepresentationAndExpandTilde(const char *path); 34 static const char *UTF8(CFStringRef cf_str, std::string &str); 35 static const char *FileSystemRepresentation(CFStringRef cf_str,
|
| /llvm-project-15.0.7/llvm/tools/dsymutil/ |
| H A D | CFBundle.cpp | 41 class CFString : public CFReleaser<CFStringRef> { 43 CFString(CFStringRef CFStr = nullptr) : CFReleaser<CFStringRef>(CFStr) {} in CFString() 50 if (CFStringRef Str = get()) in GetLength() 55 static const char *UTF8(CFStringRef CFStr, std::string &Str); 64 const char *CFString::UTF8(CFStringRef CFStr, std::string &Str) { in UTF8() 94 CFStringRef GetIdentifier() const { in GetIdentifier() 101 CFTypeRef GetValueForInfoDictionaryKey(CFStringRef key) const { in GetValueForInfoDictionaryKey() 160 if (CFStringRef BundleID = Bundle.GetIdentifier()) { in getBundleInfo() 166 CFString::UTF8((CFStringRef)TypeRef, BundleInfo.VersionStr); in getBundleInfo() 174 CFString::UTF8((CFStringRef)TypeRef, BundleInfo.ShortVersionStr); in getBundleInfo()
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | cfstring-elf-sections-x86_64.c | 5 typedef struct __CFString *CFStringRef; typedef 6 const CFStringRef one = (CFStringRef)__builtin___CFStringMakeConstantString("one"); 7 const CFStringRef two = (CFStringRef)__builtin___CFStringMakeConstantString("\xef\xbf\xbd\x74\xef\x…
|
| H A D | cfstring3.c | 19 typedef struct __CFString *CFStringRef; typedef 20 const CFStringRef one = (CFStringRef)__builtin___CFStringMakeConstantString("one"); 21 const CFStringRef two = (CFStringRef)__builtin___CFStringMakeConstantString("\xef\xbf\xbd\x74\xef\x…
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | cfref_PR2519.c | 8 typedef const struct __CFString * CFStringRef; typedef 27 extern void CFNotificationCenterPostNotification(CFNotificationCenterRef center, CFStringRef name, … 33 …CFStringRef _key = ((CFStringRef) __builtin___CFStringMakeConstantString ("" "Process identifier" … in main() 40 ((CFStringRef) __builtin___CFStringMakeConstantString ("" "GrowlPreferencesChanged" "")), in main() 41 ((CFStringRef) __builtin___CFStringMakeConstantString ("" "GrowlUserDefaults" "")), in main()
|
| /llvm-project-15.0.7/clang/test/FixIt/ |
| H A D | format-no-fixit.m | 21 typedef const struct __CFString * CFStringRef; typedef 23 void test_cf_object_correction (CFStringRef x) { 26 …%d", x); // expected-warning{{format specifies type 'int' but the argument has type 'CFStringRef'}} 27 …, x); // expected-warning{{format specifies type 'char *' but the argument has type 'CFStringRef'}} 28 …, x); // expected-warning{{format specifies type 'double' but the argument has type 'CFStringRef'}}
|
| /llvm-project-15.0.7/lldb/tools/debugserver/source/ |
| H A D | RNBServices.cpp | 141 CFReleaser<CFStringRef> sbsFrontAppID( in ListApplications() 150 CFStringRef displayIdentifier = in ListApplications() 151 (CFStringRef)::CFArrayGetValueAtIndex(sbsAppIDs.get(), i); in ListApplications() 160 if (::SBSProcessIDForDisplayIdentifier((CFStringRef)displayIdentifier, in ListApplications() 178 CFReleaser<CFStringRef> executablePath( in ListApplications() 185 CFReleaser<CFStringRef> iconImagePath( in ListApplications() 192 CFReleaser<CFStringRef> localizedDisplayName( in ListApplications()
|
| /llvm-project-15.0.7/lldb/source/Symbol/ |
| H A D | LocateSymbolFileMacOSX.cpp | 191 CFStringRef exec_cf_path = in LocateMacOSXFilesUsingDebugSymbols() 192 static_cast<CFStringRef>(::CFDictionaryGetValue( in LocateMacOSXFilesUsingDebugSymbols() 338 CFStringRef cf_str; in GetModuleSpecInfoFromUUIDDictionary() 341 cf_str = (CFStringRef)CFDictionaryGetValue((CFDictionaryRef)uuid_dict, in GetModuleSpecInfoFromUUIDDictionary() 349 cf_str = (CFStringRef)CFDictionaryGetValue( in GetModuleSpecInfoFromUUIDDictionary() 409 CFStringRef *keys = in GetModuleSpecInfoFromUUIDDictionary() 410 (CFStringRef *)malloc(kv_pair_count * sizeof(CFStringRef)); in GetModuleSpecInfoFromUUIDDictionary() 411 CFStringRef *values = in GetModuleSpecInfoFromUUIDDictionary() 412 (CFStringRef *)malloc(kv_pair_count * sizeof(CFStringRef)); in GetModuleSpecInfoFromUUIDDictionary() 511 if (CFStringGetCString((CFStringRef)defaults_setting, cstr_buf, in DownloadObjectAndSymbolFile() [all …]
|