Home
last modified time | relevance | path

Searched refs:__attribute (Results 1 – 25 of 122) sorted by relevance

12345

/external/libxml2/
Delfgcchack.h69 extern __typeof (__xmlGenericError) __xmlGenericError __attribute((alias("__xmlGenericError__intern…
72 extern __typeof (__xmlGenericError) __xmlGenericError__internal_alias __attribute((visibility("hidd…
79 extern __typeof (__xmlGenericErrorContext) __xmlGenericErrorContext __attribute((alias("__xmlGeneri…
82 extern __typeof (__xmlGenericErrorContext) __xmlGenericErrorContext__internal_alias __attribute((vi…
91 extern __typeof (docbCreatePushParserCtxt) docbCreatePushParserCtxt __attribute((alias("docbCreateP…
94 extern __typeof (docbCreatePushParserCtxt) docbCreatePushParserCtxt__internal_alias __attribute((vi…
103 extern __typeof (htmlAttrAllowed) htmlAttrAllowed __attribute((alias("htmlAttrAllowed__internal_ali…
106 extern __typeof (htmlAttrAllowed) htmlAttrAllowed__internal_alias __attribute((visibility("hidden")…
115 extern __typeof (htmlAutoCloseTag) htmlAutoCloseTag __attribute((alias("htmlAutoCloseTag__internal_…
118 extern __typeof (htmlAutoCloseTag) htmlAutoCloseTag__internal_alias __attribute((visibility("hidden…
[all …]
Dthreads.c55 __attribute((weak));
57 __attribute((weak));
60 __attribute((weak));
63 __attribute((weak));
65 __attribute((weak));
67 __attribute((weak));
69 __attribute((weak));
71 __attribute((weak));
73 __attribute((weak));
75 __attribute((weak));
[all …]
/external/clang/test/CodeGen/
Dannotations-global.c8 static __attribute((annotate("sfoo_0"))) __attribute((annotate("sfoo_1"))) char sfoo;
9 __attribute((annotate("foo_0"))) __attribute((annotate("foo_1"))) char foo;
11 void __attribute((annotate("ann_a_0"))) __attribute((annotate("ann_a_1"))) __attribute((annotate("a…
12 void __attribute((annotate("ann_a_0"))) __attribute((annotate("ann_a_1"))) a(char *a) { in a()
Dpragma-weak.c87 void __declfirstattr(void) __attribute((noinline));
98 __attribute((weak)) void mix(void) { } in mix()
104 void __mix2(void) __attribute((noinline));
105 void __mix2(void) __attribute((noinline));
113 void both(void) __attribute((alias("__both")));
123 void both2(void) __attribute((alias("__both2"))); // first, wins
130 void __a1(void) __attribute((noinline));
136 __attribute((pure,noinline,const)) void __xxx(void) { } in __xxx()
Dx86_32-arguments-darwin.c157 typedef int v39 __attribute((vector_size(16))); typedef
289 struct s59 { float x __attribute((aligned(8))); };
293 struct s60 { int x __attribute((aligned(8))); };
297 typedef int T61 __attribute((vector_size(16))); typedef
302 typedef int T62 __attribute((vector_size(16))); typedef
303 struct s62 { T62 x; int y; } __attribute((packed, aligned(8)));
310 typedef int T63 __attribute((vector_size(16))); typedef
332 typedef int T66 __attribute((vector_size(16))); typedef
Dconst-init.c120 struct g22 {int x;} __attribute((packed));
137 typedef long long v1i64 __attribute((vector_size(8))); in g28() typedef
138 typedef short v12i16 __attribute((vector_size(24))); in g28() typedef
139 typedef long double v2f80 __attribute((vector_size(24))); in g28() typedef
/external/clang/test/Sema/
Dattr-malloc.c7 void * malloc(size_t) __attribute((malloc));
9 int no_vars __attribute((malloc)); // expected-warning {{attribute only applies to functions}}
11 void returns_void (void) __attribute((malloc)); // expected-warning {{attribute only applies to r…
12 int returns_int (void) __attribute((malloc)); // expected-warning {{attribute only applies to r…
13 int * returns_intptr(void) __attribute((malloc)); // no-warning
15 iptr returns_iptr (void) __attribute((malloc)); // no-warning
17 __attribute((malloc)) void *(*f)(); // expected-warning{{attribute only applies to functions}}
18 __attribute((malloc)) int (*g)(); // expected-warning{{attribute only applies to functions}}
20 __attribute((malloc))
24 #define malloc_like __attribute((__malloc__))
Dattr-cleanup.c5 extern int g1 __attribute((cleanup(c1))); // expected-warning {{'cleanup' attribute ignored}}
6 int g2 __attribute((cleanup(c1))); // expected-warning {{'cleanup' attribute ignored}}
7 static int g3 __attribute((cleanup(c1))); // expected-warning {{'cleanup' attribute ignored}}
11 int v1 __attribute((cleanup)); // expected-error {{'cleanup' attribute takes one argument}} in t1()
12 … int v2 __attribute((cleanup(1, 2))); // expected-error {{'cleanup' attribute takes one argument}} in t1()
14 static int v3 __attribute((cleanup(c1))); // expected-warning {{'cleanup' attribute ignored}} in t1()
16 int v4 __attribute((cleanup(h))); // expected-error {{use of undeclared identifier 'h'}} in t1()
18 int v5 __attribute((cleanup(c1))); in t1()
19 … int v6 __attribute((cleanup(v3))); // expected-error {{'cleanup' argument 'v3' is not a function}} in t1()
38 __attribute((cleanup(c4))) void* g; in t4()
Dalias-redefinition.c4 void fun0(void) __attribute((alias("f0")));
8 void fun1(void) __attribute((alias("f1"))); // expected-error {{redefinition of 'fun1'}}
11 void fun2(void) __attribute((alias("f2"))); // expected-note {{previous definition}}
15 void fun3(void) __attribute((alias("f3"))); // expected-note {{previous definition}}
16 void fun3(void) __attribute((alias("f3"))); // expected-error {{redefinition of 'fun3'}}
19 void fun4(void) __attribute((alias("f4")));
24 void __attribute((alias("f5"))) fun5(void) {} // expected-error {{redefinition of 'fun5'}} // expec… in fun5()
26 int var1 __attribute((alias("v1"))); // expected-error {{definition 'var1' cannot also be an alias}}
27 static int var2 __attribute((alias("v2"))) = 2; // expected-error {{definition 'var2' cannot also b…
Dattr-mode.c8 typedef int i16_1 __attribute((mode(HI))); typedef
10 typedef int i16_2 __attribute((__mode__(__HI__))); typedef
13 typedef float f64 __attribute((mode(DF))); typedef
16 typedef int invalid_1 __attribute((mode)); // expected-error{{'mode' attribute takes one argument}} typedef
17 typedef int invalid_2 __attribute((mode())); // expected-error{{'mode' attribute takes one argument… typedef
18 typedef int invalid_3 __attribute((mode(II))); // expected-error{{unknown machine mode}} typedef
19 typedef struct {int i,j,k;} invalid_4 __attribute((mode(SI))); // expected-error{{mode attribute on… typedef
20 typedef float invalid_5 __attribute((mode(SI))); // expected-error{{type of machine mode does not m… typedef
23 typedef unsigned unwind_word __attribute((mode(unwind_word))); typedef
25 int **__attribute((mode(QI)))* i32; // expected-error{{mode attribute}}
[all …]
Dattr-tls_model.c7 int f() __attribute((tls_model("global-dynamic"))); // expected-error {{'tls_model' attribute only …
9 int x __attribute((tls_model("global-dynamic"))); // expected-error {{'tls_model' attribute only ap…
10 static __thread int y __attribute((tls_model("global-dynamic"))); // no-warning
12 static __thread int y __attribute((tls_model("local", "dynamic"))); // expected-error {{'tls_model'…
13 static __thread int y __attribute((tls_model(123))); // expected-error {{'tls_model' attribute requ…
14 static __thread int y __attribute((tls_model("foobar"))); // expected-error {{tls_model must be "gl…
Dattr-regparm.c3 __attribute((regparm(2))) int x0(void);
4 __attribute((regparm(1.0))) int x1(void); // expected-error{{'regparm' attribute requires an intege…
5 __attribute((regparm(-1))) int x2(void); // expected-error{{'regparm' parameter must be between 0 a…
6 __attribute((regparm(5))) int x3(void); // expected-error{{'regparm' parameter must be between 0 an…
7 __attribute((regparm(5,3))) int x4(void); // expected-error{{'regparm' attribute takes one argument…
Dpragma-weak.c5 void both3(void) __attribute((alias("__both3"))); // expected-error {{redefinition of 'both3'}}
8 void __a3(void) __attribute((noinline));
10 void a3(void) __attribute((alias("__a3"))); // expected-error {{redefinition of 'a3'}}
Dattr-deprecated.c118 foo_dep a __attribute((deprecated));
120 foo_dep c, d __attribute((deprecated)); // expected-warning {{'foo_dep' is deprecated}}
121 __attribute((deprecated)) foo_dep e, f;
124 typedef int test23_ty __attribute((deprecated)); typedef
/external/clang/test/SemaObjC/
Darc-nsconsumed-errors.m4 typedef void (^blk)(id arg1, __attribute((ns_consumed)) id arg2);
5 typedef void (^blk1)(__attribute((ns_consumed))id arg1, __attribute((ns_consumed)) id arg2);
6 blk a = ^void (__attribute((ns_consumed)) id arg1, __attribute((ns_consumed)) id arg2){}; // expect…
8 blk b = ^void (id arg1, __attribute((ns_consumed)) id arg2){};
10 blk c = ^void (__attribute((ns_consumed)) id arg1, __attribute((ns_consumed)) id arg2){}; // expect…
14 blk1 a1 = ^void (__attribute((ns_consumed)) id arg1, id arg2){}; // expected-error {{incompatible b…
16 blk1 b2 = ^void (id arg1, __attribute((ns_consumed)) id arg2){}; // expected-error {{incompatible b…
18 blk1 c3 = ^void (__attribute((ns_consumed)) id arg1, __attribute((ns_consumed)) id arg2){};
Dattr-malloc.m4 - (id) test1 __attribute((malloc)); // expected-warning {{attribute only applies to functions}} method
5 - (int) test2 __attribute((malloc)); // expected-warning {{attribute only applies to functions}} method
8 id bar(void) __attribute((malloc)); // no-warning function
11 bptr baz(void) __attribute((malloc)); // no-warning function
13 __attribute((malloc)) id (*f)(); // expected-warning {{attribute only applies to functions}} function
14 __attribute((malloc)) bptr (*g)(); // expected-warning {{attribute only applies to functions}} function
15 __attribute((malloc)) void *(^h)(); // expected-warning {{attribute only applies to functions}} function
Dattr-objc-gc.m2 static id __attribute((objc_gc(weak))) a; function
3 static id __attribute((objc_gc(strong))) b; function
5 static id __attribute((objc_gc())) c; // expected-error{{'objc_gc' attribute requires a string}} function
6 static id __attribute((objc_gc(123))) d; // expected-error{{'objc_gc' attribute requires a string}} function
7 static id __attribute((objc_gc(foo, 456))) e; // expected-error{{'objc_gc' attribute takes one argu… function
8 static id __attribute((objc_gc(hello))) f; // expected-warning{{'objc_gc' attribute argument not su… function
22 void test2(id __attribute((objc_gc(strong))) *strong,
23 id __attribute((objc_gc(weak))) *weak) {
Dsuper-dealloc-attribute.m8 #define NS_REQUIRES_SUPER __attribute((objc_requires_super))
16 - MyDealloc __attribute((objc_requires_super)); method
17 - (void)XXX __attribute((objc_requires_super)); method
18 - (void) dealloc __attribute((objc_requires_super)); // expected-warning {{'objc_requires_super' at… method
20 - (void) AnnotMyDeallocMeth __attribute((objc_requires_super)); method
23 + (void)registerClass:(id)name __attribute((objc_requires_super));
28 - (void) MyDeallocMeth __attribute((objc_requires_super)); // 'Baz' author has annotated method method
30 - (void) AnnotMeth __attribute((objc_requires_super)); // 'Baz' author has annotated method method
61 - (void) AnnotMethCAT __attribute((objc_requires_super)); method in CAT
Dprotocol-attribute.m3 __attribute ((unavailable)) function
9 __attribute ((deprecated)) @protocol MyProto1 // expected-note 7 {{'MyProto1' has been explicitly m…
41 __attribute ((unavailable)) __attribute ((deprecated)) @protocol XProto; // expected-note{{marked u… function
/external/clang/test/SemaObjCXX/
Darc-nsconsumed-errors.mm4 typedef void (^blk)(id, __attribute((ns_consumed)) id);
5 typedef void (^blk1)(__attribute((ns_consumed))id, __attribute((ns_consumed)) id);
6 blk a = ^void (__attribute((ns_consumed)) id, __attribute((ns_consumed)) id){}; // expected-error {…
8 blk b = ^void (id, __attribute((ns_consumed)) id){};
10 blk c = ^void (__attribute((ns_consumed)) id, __attribute((ns_consumed)) id){}; // expected-error {…
14 blk1 a1 = ^void (__attribute((ns_consumed)) id, id){}; // expected-error {{cannot initialize a vari…
16 blk1 b2 = ^void (id, __attribute((ns_consumed)) id){}; // expected-error {{cannot initialize a vari…
18 blk1 c3 = ^void (__attribute((ns_consumed)) id, __attribute((ns_consumed)) id){};
/external/clang/test/SemaOpenCL/
Dvector_literals_const.cl4 typedef int int2 __attribute((ext_vector_type(2)));
5 typedef int int3 __attribute((ext_vector_type(3)));
6 typedef int int4 __attribute((ext_vector_type(4)));
16 typedef float float2 __attribute((ext_vector_type(2)));
17 typedef float float3 __attribute((ext_vector_type(3)));
18 typedef float float4 __attribute((ext_vector_type(4)));
Dvector_conv_invalid.cl3 typedef unsigned int uint4 __attribute((ext_vector_type(4)));
4 typedef int int4 __attribute((ext_vector_type(4)));
5 typedef int int3 __attribute((ext_vector_type(3)));
6 typedef unsigned uint3 __attribute((ext_vector_type(3)));
/external/clang/test/Analysis/
Dnonnull.m73 extern void rdar16153464_check(union rdar16153464_pub_ctx_t outer) __attribute((nonnull(1)));
80 void multipleAttributes_1(char *p, char *q) __attribute((nonnull(1))) __attribute((nonnull(2))); function
102 void multipleAttributes_2(char *p, char *q) __attribute((nonnull(1))); function
103 void multipleAttributes_2(char *p, char *q) __attribute((nonnull(2))); function
120 void multipleAttributes_3(char *p, char *q) __attribute((nonnull(1))) __attribute((nonnull(1))); function
133 void multipleAttributes_4(char *p, char *q, char *r) __attribute((nonnull(1))) __attribute((nonnull… function
152 void multipleAttributes_all_1(char *p, char *q) __attribute((nonnull(1))) __attribute((nonnull)); function
165 void multipleAttributes_all_2(char *p, char *q) __attribute((nonnull)) __attribute((nonnull(2))); function
Dmalloc-annotations.c7 void __attribute((ownership_returns(malloc))) *my_malloc(size_t);
8 void __attribute((ownership_takes(malloc, 1))) my_free(void *);
10 __attribute((ownership_holds(malloc, 1, 2)));
11 void __attribute((ownership_returns(malloc, 1))) *my_malloc2(size_t);
12 void __attribute((ownership_holds(malloc, 1))) my_hold(void *);
17 void __attribute((ownership_holds(malloc, 1)))
18 __attribute((ownership_holds(malloc, 1)))
19 __attribute((ownership_holds(malloc, 3))) my_hold2(void *, void *, void *);
/external/clang/test/CodeGenOpenCL/
Dvector_literals_nested.cl3 typedef int int2 __attribute((ext_vector_type(2)));
4 typedef int int4 __attribute((ext_vector_type(4)));
11 typedef float float2 __attribute((ext_vector_type(2)));
12 typedef float float4 __attribute((ext_vector_type(4)));

12345