Home
last modified time | relevance | path

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

123456

/external/clang/test/SemaObjC/
Darc-unbridged-cast.m3 typedef const struct __CFString * CFStringRef; typedef
10 @property CFStringRef property;
11 - (CFStringRef) implicitProperty;
12 - (CFStringRef) newString;
13 - (CFStringRef) makeString;
27 CFStringRef unauditedString(void);
28 CFStringRef plusOneString(void) __attribute__((cf_returns_retained));
31 CFStringRef auditedString(void);
32 CFStringRef auditedCreateString(void);
35 extern const CFStringRef kUserConst;
[all …]
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);
53 extern SInt32 CFStringGetIntValue(CFStringRef str); // expected-note {{passing argument to paramete…
[all …]
Dillegal-nonarc-bridged-cast.m5 typedef const struct __CFString *CFStringRef; typedef
11 CFStringRef CFCreateString();
13 CFStringRef CFGetString();
28CFStringRef cf2 = (__bridge_retained CFStringRef)CreateNSString(); // expected-warning {{'__bridge…
30 CFStringRef cf4 = (__bridge CFStringRef)CreateNSString();
Dformat-cstrings-warning.m41 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 …]
Darc-bridged-cast.m7 typedef const struct __CFString *CFStringRef; typedef
13 CFStringRef CFCreateString();
15 CFStringRef CFGetString();
30 CFStringRef cf2 = (__bridge_retained CFStringRef)CreateNSString();
32 CFStringRef cf4 = (__bridge CFStringRef)CreateNSString();
/external/clang/test/SemaObjCXX/
Darc-unbridged-cast.mm3 typedef const struct __CFString * CFStringRef; typedef
10 @property CFStringRef property;
11 - (CFStringRef) implicitProperty;
12 - (CFStringRef) newString;
13 - (CFStringRef) makeString;
27 CFStringRef unauditedString(void);
28 CFStringRef plusOneString(void) __attribute__((cf_returns_retained));
31 CFStringRef auditedString(void);
32 CFStringRef auditedCreateString(void);
40 x = (id) (cond ? (CFStringRef) @"help" : auditedString());
[all …]
Darc-bridged-cast.mm4 typedef const struct __CFString *CFStringRef; typedef
10 CFStringRef CFCreateString();
12 CFStringRef CFGetString();
31 CFStringRef cf2 = (__bridge_retained StringType)CreateNSString();
33 CFStringRef cf4 = (__bridge StringType)CreateNSString();
36 template void to_cf<CFTypeRef, CFStringRef>(id); function
Dreinterpret-cast-objc-pointertype.mm6 typedef const struct __CFString * CFStringRef; typedef
9 CFStringRef func() {
10 return reinterpret_cast<CFStringRef>(fRef);
13 CFStringRef fRef1;
Darc-objc-lifetime.mm4 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…
/external/clang/test/ARCMT/
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 …]
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 …]
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 …]
/external/clang/test/CodeGenObjC/
Darc-unbridged-cast.m4 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() __attribute__((cf_returns_retained));
[all …]
/external/clang/test/CodeGen/
DCFStrings.c16 typedef struct __CFString *CFStringRef; typedef
17 const CFStringRef one = (CFStringRef)__builtin___CFStringMakeConstantString("one");
18 const CFStringRef two = (CFStringRef)__builtin___CFStringMakeConstantString("\xef\xbf\xbd\x74\xef\x…
Dcfstring-windows.c31 typedef struct __CFString *CFStringRef; typedef
32 const CFStringRef string = (CFStringRef)__builtin___CFStringMakeConstantString("string");
/external/clang/test/Analysis/
Dcfref_PR2519.c7 typedef const struct __CFString * CFStringRef; typedef
26 extern void CFNotificationCenterPostNotification(CFNotificationCenterRef center, CFStringRef name, …
32CFStringRef _key = ((CFStringRef) __builtin___CFStringMakeConstantString ("" "Process identifier" … in main()
39 ((CFStringRef) __builtin___CFStringMakeConstantString ("" "GrowlPreferencesChanged" "")), in main()
40 ((CFStringRef) __builtin___CFStringMakeConstantString ("" "GrowlUserDefaults" "")), in main()
Dretain-release-inline.m34 typedef const struct __CFString * CFStringRef; typedef
62 extern CFStringRef CFStringCreateWithCString(CFAllocatorRef alloc, const char *cStr, CFStringEncodi…
81 extern CFAttributedStringRef CFAttributedStringCreate(CFAllocatorRef alloc, CFStringRef str, CFDict…
83 …edStringSetAttribute(CFMutableAttributedStringRef aStr, CFRange range, CFStringRef attrName, CFTyp…
204 extern DADissenterRef DADissenterCreate( CFAllocatorRef allocator, DAReturn status, CFStringRef str…
268 extern CFStringRef CFStringCreateWithCStringNoCopy(CFAllocatorRef alloc, const char *cStr, CFString…
302 CFStringRef test_return_ratained_CF(char *bytes) {
303 CFStringRef str;
323 __attribute__((cf_returns_retained)) CFStringRef test_return_inline(CFStringRef x) {
329 CFStringRef str = CFStringCreateWithCStringNoCopy(0, bytes, NSNEXTSTEPStringEncoding, 0);
[all …]
/external/python/cpython2/Mac/Modules/ah/
D_AHmodule.c27 CFStringRef bookname; in Ah_AHSearch()
28 CFStringRef query; in Ah_AHSearch()
60 CFStringRef bookname; in Ah_AHGotoPage()
61 CFStringRef path; in Ah_AHGotoPage()
62 CFStringRef anchor; in Ah_AHGotoPage()
81 CFStringRef bookname; in Ah_AHLookupAnchor()
82 CFStringRef anchor; in Ah_AHLookupAnchor()
/external/python/cpython2/Mac/Modules/cf/
D_CFmodule.c33 extern PyObject *_CFStringRefObj_New(CFStringRef);
34 extern int _CFStringRefObj_Convert(PyObject *, CFStringRef *);
261 CFStringRef _rv; in CFTypeRefObj_CFCopyDescription()
322 CFStringRef errorString; in CFTypeRefObj_CFPropertyListCreateFromXMLData()
560 CFStringRef _rv; in CFArrayRefObj_CFStringCreateByCombiningStrings()
561 CFStringRef separatorString; in CFArrayRefObj_CFStringCreateByCombiningStrings()
1387 CFStringRef _rv; in CFDataRefObj_CFStringCreateFromExternalRepresentation()
1801 CFStringRef ob_itself;
1805 PyObject *CFStringRefObj_New(CFStringRef itself) in CFStringRefObj_New()
1821 int CFStringRefObj_Convert(PyObject *v, CFStringRef *p_itself) in CFStringRefObj_Convert()
[all …]
/external/clang/test/FixIt/
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'}}
/external/libchrome/base/strings/
Dsys_string_conversions.h65 BASE_EXPORT CFStringRef SysUTF8ToCFStringRef(const std::string& utf8);
66 BASE_EXPORT CFStringRef SysUTF16ToCFStringRef(const string16& utf16);
73 BASE_EXPORT std::string SysCFStringRefToUTF8(CFStringRef ref);
74 BASE_EXPORT string16 SysCFStringRefToUTF16(CFStringRef ref);
Dsys_string_conversions_mac.mm25 static StringType CFStringToSTLStringWithEncodingT(CFStringRef cfstring,
82 base::ScopedCFTypeRef<CFStringRef> cfstring(CFStringCreateWithBytesNoCopy(
97 // return it as a CFStringRef. Returns NULL on failure.
99 static CFStringRef STLStringToCFStringWithEncodingsT(
147 CFStringRef SysUTF8ToCFStringRef(const std::string& utf8) {
151 CFStringRef SysUTF16ToCFStringRef(const string16& utf16) {
165 std::string SysCFStringRefToUTF8(CFStringRef ref) {
170 string16 SysCFStringRefToUTF16(CFStringRef ref) {
178 return SysCFStringRefToUTF8(reinterpret_cast<CFStringRef>(nsstring));
184 return SysCFStringRefToUTF16(reinterpret_cast<CFStringRef>(nsstring));
/external/clang/test/Analysis/inlining/
DInlineObjCInstanceMethod.m5 typedef const struct __CFString * CFStringRef; typedef
9 extern CFStringRef getString(void);
21 - (CFStringRef) testCovariantReturnType __attribute__((cf_returns_retained)) {
22 CFStringRef Str = ((void*)0);
115 - (CFStringRef) testCovariantReturnType __attribute__((cf_returns_retained)) {
116 CFStringRef Str = ((void*)0);
143 CFStringRef S = ((void*)0);
/external/clang/test/PCH/Inputs/
Darc.h4 typedef const struct __CFString *CFStringRef; typedef
7 CFStringRef CFCreateString();
9 CFStringRef CFGetString();
/external/python/cpython2/Mac/Modules/
D_scproxy.c18 cfstring_to_pystring(CFStringRef ref) in cfstring_to_pystring()
98 CFStringRef aString = NULL; in get_proxy_settings()
127 CFStringRef enabledKey, in set_proxy()
128 CFStringRef hostKey, CFStringRef portKey) in set_proxy()
134 CFStringRef hostString; in set_proxy()

123456