Home
last modified time | relevance | path

Searched defs:__attribute__ (Results 1 – 25 of 99) sorted by relevance

1234

/external/clang/test/SemaObjC/
Dspecial-dep-unavail-warning.m6 - (void) unavailMeth __attribute__((unavailable)); // expected-note {{has been explicitly marked un… method
7 - (void) depInA1 __attribute__((deprecated)); method
9 - (void) depInA2 __attribute__((deprecated)); method
10 - (void) unavailMeth2 __attribute__((unavailable)); // expected-note {{has been explicitly marked u… method
12 - (void) depunavailInA1 __attribute__((deprecated)) __attribute__((unavailable)); // expected-note … method
13 - (void)FuzzyMeth __attribute__((deprecated)); method
14 - (void)FuzzyMeth1 __attribute__((unavailable)); method
18 - (void) unavailMeth1 __attribute__((unavailable)); // expected-note {{has been explicitly marked u… method
19 - (void) depInA __attribute__((deprecated)); method
20 - (void) depInA2 __attribute__((deprecated)); method
[all …]
Dformat-arg-attribute.m5 extern NSString *fa2 (const NSString *) __attribute__((format_arg(1))); function
6 extern NSString *fa3 (NSString *) __attribute__((format_arg(1))); function
8 extern void fc1 (const NSString *) __attribute__((format_arg)); // expected-error {{attribute take… function
9 extern void fc2 (const NSString *) __attribute__((format_arg())); // expected-error {{attribute tak… function
10 extern void fc3 (const NSString *) __attribute__((format_arg(1, 2))); // expected-error {{attribute… function
12 struct s1 { int i; } __attribute__((format_arg(1))); // expected-warning {{'format_arg' attribute … function
13 union u1 { int i; } __attribute__((format_arg(1))); // expected-warning {{'format_arg' attribute o… function
14 enum e1 { E1V0 } __attribute__((format_arg(1))); // expected-warning {{'format_arg' attribute only … function
16 extern NSString *ff3 (const NSString *) __attribute__((format_arg(3-2))); function
17 extern NSString *ff4 (const NSString *) __attribute__((format_arg(foo))); // expected-error {{attri… function
[all …]
Dnonnull.m9 int f2(int *x) __attribute__ ((nonnull (1))); function
10 int f3(int *x) __attribute__ ((nonnull (0))); // expected-error {{'nonnull' attribute parameter 1 i… function
11 int f4(int *x, int *y) __attribute__ ((nonnull (1,2))); function
12 int f5(int *x, int *y) __attribute__ ((nonnull (2,1))); function
13 int f6(NSObject *x) __attribute__ ((nonnull (1))); // no-warning function
14 int f7(NSObject *x) __attribute__ ((nonnull)); // no-warning function
17 extern void func1 (void (^block1)(), void (^block2)(), int) __attribute__((nonnull)); function
20 __attribute__((nonnull(1,3))); function
22 extern void func4 (void (^block1)(), void (^block2)()) __attribute__((nonnull(1))) function
23 __attribute__((nonnull(2))); function
[all …]
Dattr-ns-bridged.m3 typedef struct __attribute__((ns_bridged)) test0s *test0ref; struct
5 void test0func(void) __attribute__((ns_bridged)); // expected-error {{'ns_bridged' attribute only a… function
7 union __attribute__((ns_bridged)) test0u; // expected-error {{'ns_bridged' attribute only applies t… function
9 struct __attribute__((ns_bridged(Test1))) test1s; struct
12 struct __attribute__((ns_bridged(Test2))) test2s; struct
15 struct __attribute__((ns_bridged(Test3))) test3s; // expected-error {{parameter of 'ns_bridged' att… struct
Dproperty-ns-returns-not-retained-attr.m5 @property (nonatomic, retain) id newName __attribute__((ns_returns_not_retained)) ; property
7 @property (nonatomic, retain) id newName1 __attribute__((ns_returns_not_retained)) ; property
8 - (id) newName1 __attribute__((ns_returns_not_retained)); method
10 @property (nonatomic, retain) id newName2 __attribute__((ns_returns_not_retained)); // expected-not… property
Dmethod-warn-unused-attribute.m4 - (id) foo __attribute__((warn_unused_result)); method
5 - (void) garf __attribute__((warn_unused_result)); // expected-warning {{attribute 'warn_unused_res… method
6 - (int) fee __attribute__((warn_unused_result)); method
7 + (int) c __attribute__((warn_unused_result)); class
Dattr-objc-exception.m3 __attribute__((__objc_exception__)) function
11 __attribute__((__objc_exception__)) // expected-error {{attribute may only be applied to an Objecti… function
14 __attribute__((__objc_exception__)) // expected-error {{attribute may only be applied to an Objecti… function
Dattr-deprecated.m4 int X __attribute__((deprecated)); field
6 + (void)F __attribute__((deprecated)); class
7 - (void)f __attribute__((deprecated)); method
12 {
45 - (void)p __attribute__((deprecated)); method
74 @property (assign, setter = MySetter:) int FooBar __attribute__ ((deprecated)); property
110 @property int test2 __attribute__((deprecated)); property
121 __attribute__((deprecated)) function
Dno-warning-unavail-unimp.m5 @property (getter=getVal) int val __attribute__((unavailable)); property
6 - Method __attribute__((unavailable)); method
7 + CMethod __attribute__((unavailable)); class
Dwarn-deprecated-implementations.m5 - (void) D __attribute__((deprecated)); // expected-note {{method 'D' declared here}} method
9 + (void)F __attribute__((deprecated)); // expected-note {{method 'F' declared here}} class
22 __attribute__((deprecated)) function
37 - (void) B __attribute__((deprecated)); // expected-note {{method 'B' declared here}} method
Darc-unavailable-for-weakref.m4 __attribute__((objc_arc_weak_reference_unavailable)) function
23 __attribute__((objc_arc_weak_reference_unavailable)) function
52 __attribute__((objc_arc_weak_reference_unavailable)) function
Dignore-weakimport-method.m3 + (void) cx __attribute__((weak_import)); class
4 - (void) x __attribute__((weak_import)); method
Dattr-root-class.m8 __attribute__((objc_root_class)) function
14 __attribute__((objc_root_class)) static void nonClassDeclaration() // expected-error {{attribute m… function
/external/clang/test/CodeGenObjC/
Ddeadcode_strip_used_var.m7 __attribute__((used)) static int XXXXXX __attribute__ ((section ("__DATA,__Xinterpose"))) ; function
8 __attribute__((used)) static int YYYY __attribute__ ((section ("__DATA,__Xinterpose"))) ; function
Dobjc2-weak-import-attribute.m3 __attribute__((weak_import)) @interface WeakRootClass @end function
5 __attribute__((weak_import)) @interface WeakClass : WeakRootClass function
15 __attribute__((weak_import)) function
22 __attribute__((weak_import)) function
38 __attribute__((weak_import)) @interface Root @end function
Doverloadable.m7 void __attribute__((overloadable)) f(id c) { } function
10 void __attribute__((overloadable)) f(C *c) { } function
Darc-unbridged-cast.m8 - (CFStringRef) CFMeth __attribute__((cf_returns_retained)); method
10 - (CFStringRef) P __attribute__((cf_returns_retained)); method
28 CFStringRef SomeOtherFunc() __attribute__((cf_returns_retained)); function
Dhidden.m3 __attribute__((visibility("hidden"))) function
12 __attribute__((visibility("default"))) function
/external/clang/test/Parser/
Dprefix-attributes.m3 __attribute__((deprecated)) @class B; // expected-error {{prefix attribute must be followed by an i… function
5 __attribute__((deprecated)) @interface A @end function
6 __attribute__((deprecated)) @protocol P0; function
Dobjc-category-neg-1.m3 void __assert_rtn(const char *, const char *, int, const char *) __attribute__((__noreturn__)); function
4 static __inline__ int __inline_isfinitef (float ) __attribute__ ((always_inline)); function
/external/webkit/Tools/WebKitLauncher/
DWebKitNightlyEnabler.m33 static void enableWebKitNightlyBehaviour() __attribute__ ((constructor)); function
119 extern char **_CFGetProcessPath() __attribute__((weak)); function
120 …pplication(CFDictionaryRef additionalAppInfoRef, ProcessSerialNumber* myPSN) __attribute__((weak)); function
/external/clang/test/CodeGenObjCXX/
Darc-returns-inner-reference-ptr.mm5 - (char* &) interior __attribute__((objc_returns_inner_pointer)); method
6 - (int&)reference_to_interior_int __attribute__((objc_returns_inner_pointer)); method
/external/clang/test/SemaObjCXX/
Darc-memfunc.mm4 static id makeObject1() __attribute__((ns_returns_retained)); field
5 id makeObject2() __attribute__((ns_returns_retained)); field
/external/clang/test/Index/
Dindex-attrs.m7 -(id)prop __attribute__((annotate("anno"))); method
9 @property (assign) id prop __attribute__((annotate("anno"))); property
/external/clang/test/Analysis/
Dblocks.m13 __attribute__((visibility("default"))) __attribute__((__malloc__)) __attribute__((__warn_unused_res… function
40 int asl_log(aslclient asl, aslmsg msg, int level, const char *format, ...) __attribute__((__format_… function

1234