Home
last modified time | relevance | path

Searched refs:CFStringRef (Results 1 – 25 of 92) sorted by relevance

1234

/llvm-project/clang/test/SemaObjC/
H A Darc-unbridged-cast.m3 typedef const struct __CFString * CFStringRef; typedef
10 @property CFStringRef property;
11 - (CFStringRef) implicitProperty;
12 - (CFStringRef) newString;
13 - (CFStringRef) makeString;
25 CFStringRef unauditedString(void);
26 CFStringRef plusOneString(void) __attribute__((cf_returns_retained));
29 CFStringRef auditedString(void);
30 CFStringRef auditedCreateString(void);
33 extern const CFStringRef kUserConst;
[all …]
H A Darc-cf.m10 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);
52 extern SInt32 CFStringGetIntValue(CFStringRef str); // expected-note {{passing argument to paramete…
[all …]
H A Dformat-cstrings-warning.m40 typedef const struct __CFString * CFStringRef; typedef
49 CFStringRef CFStringCreateWithFormat(CFAllocatorRef alloc, CFDictionaryRef formatOptions, CFStringR…
52 CFStringRef CFStringCreateWithFormatAndArguments(CFAllocatorRef alloc, CFDictionaryRef formatOption…
55 void CFStringAppendFormat(CFMutableStringRef theString, CFDictionaryRef formatOptions, CFStringRef
58 …Arguments(CFMutableStringRef theString, CFDictionaryRef formatOptions, CFStringRef format, va_list…
62 …CFStringCreateWithFormatAndArguments (alloc, 0, (CFStringRef)@"%s\n", argList); // expected-warnin…
63 …CFStringAppendFormatAndArguments ((CFMutableStringRef)@"AAAA", 0, (CFStringRef)"Hello %s there %d\…
64 CFStringCreateWithFormatAndArguments (alloc, 0, (CFStringRef)@"%c\n", argList);
65 CFStringAppendFormatAndArguments ((CFMutableStringRef)@"AAAA", 0, (CFStringRef)"%d\n", argList);
69 extern void MyCFStringCreateWithFormat(CFStringRef format, ...) __attribute__((format(__CFString__,…
[all …]
H A Dillegal-nonarc-bridged-cast.m4 typedef const struct __CFString *CFStringRef; typedef
11 CFStringRef CFCreateString(void);
13 CFStringRef CFGetString(void);
28CFStringRef cf2 = (__bridge_retained CFStringRef)CreateNSString(); // expected-warning {{'__bridge…
30 CFStringRef cf4 = (__bridge CFStringRef)CreateNSString();
48 CFStringRef c;
/llvm-project/lldb/source/Host/macosx/cfcpp/
H A DCFCMutableDictionary.h30 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);
37 bool SetValueSInt32(CFStringRef key, int32_t value, bool can_create = false);
38 bool AddValueSInt64(CFStringRef key, int64_t value, bool can_create = false);
39 bool SetValueSInt64(CFStringRef key, int64_t value, bool can_create = false);
[all …]
H A DCFCString.cpp14 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 DCFCMutableDictionary.cpp91 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()
218 bool CFCMutableDictionary::SetValueSInt64(CFStringRef key, int64_t value, in SetValueSInt64()
[all …]
H A DCFCString.h16 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/clang/test/SemaObjCXX/
H A Darc-unbridged-cast.mm3 typedef const struct __CFString * CFStringRef; typedef
10 @property CFStringRef property;
11 - (CFStringRef) implicitProperty;
12 - (CFStringRef) newString;
13 - (CFStringRef) makeString;
25 CFStringRef unauditedString(void);
26 CFStringRef plusOneString(void) __attribute__((cf_returns_retained));
29 CFStringRef auditedString(void);
30 CFStringRef auditedCreateString(void);
38 x = (id) (cond ? (CFStringRef) @"help" : auditedString());
[all …]
H A Dbridge-cast-redecl.mm5 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 Dreinterpret-cast-objc-pointertype.mm6 typedef const struct __CFString * CFStringRef; typedef
9 CFStringRef func() {
10 return reinterpret_cast<CFStringRef>(fRef);
13 CFStringRef fRef1;
H A Darc-objc-lifetime.mm3 typedef const struct __CFString * CFStringRef; typedef
15 - (CFStringRef)myString
17 CFStringRef myString =
18 …(__bridge CFStringRef) (__strong NSString *)CFBridgingRelease(); // expected-error {{explicit owne…
21 …(__bridge CFStringRef) (__autoreleasing PNSString) CFBridgingRelease(); // expected-error {{explic…
23 (__bridge CFStringRef) (AUTORELEASEPNSString) CFBridgingRelease(); // OK
25 …(__bridge CFStringRef) (typeof(__strong NSString *)) CFBridgingRelease(); // expected-error {{expl…
/llvm-project/clang/test/ARCMT/
H A Dnonobjc-to-objc-cast.m.result7 typedef const struct __CFString * CFStringRef;
8 extern const CFStringRef kUTTypePlainText;
9 extern const CFStringRef kUTTypeRTF;
10 extern CFStringRef kNonConst;
17 extern CFStringRef CFUUIDCreateString(CFAllocatorRef alloc, CFUUIDRef uuid);
20 CFStringRef sref_member;
24 CFStringRef sref;
49 CFStringRef str = (__bridge CFStringRef)self;
50 CFStringRef str2 = (__bridge CFStringRef)(self);
65 extern void consumeParam(CFStringRef CF_CONSUMED p);
[all …]
H A Dnonobjc-to-objc-cast.m7 typedef const struct __CFString * CFStringRef; typedef
8 extern const CFStringRef kUTTypePlainText;
9 extern const CFStringRef kUTTypeRTF;
10 extern CFStringRef kNonConst;
17 extern CFStringRef CFUUIDCreateString(CFAllocatorRef alloc, CFUUIDRef uuid);
20 CFStringRef sref_member;
24 CFStringRef sref;
49 CFStringRef str = (CFStringRef)self;
50 CFStringRef str2 = self;
65 extern void consumeParam(CFStringRef CF_CONSUMED p);
[all …]
H A Dnonobjc-to-objc-cast-2.m5 typedef const struct __CFString * CFStringRef; typedef
11 CFStringRef sref_member;
15 CFStringRef sref;
30 …return sref; // expected-error {{implicit conversion of C pointer type 'CFStringRef' (aka 'const s…
32 …// expected-note{{use CFBridgingRelease call to transfer ownership of a +1 'CFStringRef' (aka 'con…
37 CFStringRef cfstr;
38 …NSString *str = (NSString *)cfstr; // expected-error {{cast of C pointer type 'CFStringRef' (aka '…
40 …// expected-note{{use CFBridgingRelease call to transfer ownership of a +1 'CFStringRef' (aka 'con…
45 CFStringRef ref;
46 …ref = [(CFStringRef)[s string] retain]; // expected-error {{cast of Objective-C pointer type 'id' …
[all …]
/llvm-project/clang/test/CodeGenObjC/
H A Darc-unbridged-cast.m3 typedef const struct __CFString * CFStringRef; typedef
6 @property CFStringRef P;
7 - (CFStringRef) CFMeth __attribute__((cf_returns_retained));
8 - (CFStringRef) newSomething;
9 - (CFStringRef) P __attribute__((cf_returns_retained));
20 - (CFStringRef) CFMeth { return 0; }
21 - (CFStringRef) newSomething { return 0; }
22 - (CFStringRef) P { return 0; }
23 - (void) setP : (CFStringRef)arg {} argument
26 CFStringRef SomeOtherFunc(void) __attribute__((cf_returns_retained));
[all …]
H A Darc-bridged-cast.m4 typedef const struct __CFString *CFStringRef; typedef
10 CFStringRef CFCreateString(void);
12 CFStringRef CFGetString(void);
94 CFStringRef bridge_of_paren_expr(void) {
96 CFStringRef r = (__bridge CFStringRef)(CreateNSString());
97 r = (__bridge CFStringRef)((NSString *)(CreateNSString()));
/llvm-project/lldb/tools/debugserver/source/MacOSX/
H A DCFString.cpp18 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 DCFString.h19 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/llvm/tools/dsymutil/
H A DCFBundle.cpp41 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/clang/test/CodeGen/
H A Dcfstring-elf-sections-x86_64.c5 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 Dcfstring3.c19 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/clang/test/Analysis/
H A Dcfref_PR2519.c8 typedef const struct __CFString * CFStringRef; typedef
27 extern void CFNotificationCenterPostNotification(CFNotificationCenterRef center, CFStringRef name, …
33CFStringRef _key = ((CFStringRef) __builtin___CFStringMakeConstantString ("" "Process identifier" … in main()
40 ((CFStringRef) __builtin___CFStringMakeConstantString ("" "GrowlPreferencesChanged" "")), in main()
41 ((CFStringRef) __builtin___CFStringMakeConstantString ("" "GrowlUserDefaults" "")), in main()
/llvm-project/lldb/tools/debugserver/source/
H A DRNBServices.cpp141 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/clang/test/FixIt/
H A Dformat-no-fixit.m21 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'}}

1234