Home
last modified time | relevance | path

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

1234567891011

/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 …]
/external/selinux/libsepol/src/
Ddeprecated_funcs.c15 int sepol_genusers(void *data __attribute((unused)), in sepol_genusers()
16 size_t len __attribute((unused)), in sepol_genusers()
17 const char *usersdir __attribute((unused)), in sepol_genusers()
18 void **newdata __attribute((unused)), in sepol_genusers()
19 size_t *newlen __attribute((unused))) in sepol_genusers()
25 void sepol_set_delusers(int on __attribute((unused))) in sepol_set_delusers()
34 int sepol_genbools(void *data __attribute((unused)), in sepol_genbools()
35 size_t len __attribute((unused)), in sepol_genbools()
36 const char *booleans __attribute((unused))) in sepol_genbools()
42 int sepol_genbools_array(void *data __attribute((unused)), in sepol_genbools_array()
[all …]
/external/llvm-project/clang/test/Sema/
Dattr-long-call.c9 __attribute((long_call)) int a; // expected-warning {{attribute only applies to functions}}
10 __attribute((short_call)) int d; // expected-warning {{attribute only applies to functions}}
11 __attribute((far)) int a; // expected-warning {{attribute only applies to functions}}
12 __attribute((near)) int a; // expected-warning {{attribute only applies to functions}}
14 __attribute((long_call)) void foo4();
15 __attribute((short_call)) void foo10();
16 __attribute((far)) void foo5();
17 __attribute((near)) void foo6();
19 __attribute((long_call, far)) void foo7();
20 __attribute((short_call, near)) void foo11();
[all …]
Dattr-uninitialized.c4 int dont_initialize_me __attribute((uninitialized)); in good()
8 …int im_bad __attribute((uninitialized("zero"))); // expected-error {{'uninitialized' attribute ta… in bad()
9 …static int im_baaad __attribute((uninitialized)); // expected-warning {{'uninitialized' attribute … in bad()
12 extern int come_on __attribute((uninitialized)); // expected-warning {{'uninitia…
13 int you_know __attribute((uninitialized)); // expected-warning {{'uninitia…
14 static int and_the_whole_world_has_to __attribute((uninitialized)); // expected-warning {{'uninitia…
16 void answer_right_now() __attribute((uninitialized)) {} // expected-warning … in answer_right_now()
17 void just_to_tell_you_once_again(__attribute((uninitialized)) int whos_bad) {} // expected-warning … in just_to_tell_you_once_again()
20__attribute((uninitialized)) int youre_doin_wrong; // expected-warning {{'uninitialized' attribute…
21 } __attribute((uninitialized)); // expected-warning {{'uninitialized' attribut…
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__))
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")));
23 void __attribute((alias("f5"))) fun5(void) {} // expected-error {{definition 'fun5' cannot also be … in fun5()
25 int var1 __attribute((alias("v1"))); // expected-error {{definition 'var1' cannot also be an alias}}
26 static int var2 __attribute((alias("v2"))) = 2; // expected-error {{definition 'var2' cannot also b…
Dattr-cleanup.c5 extern int g1 __attribute((cleanup(c1))); // expected-warning {{'cleanup' attribute only applies to…
6 int g2 __attribute((cleanup(c1))); // expected-warning {{'cleanup' attribute only applies to local …
7 static int g3 __attribute((cleanup(c1))); // expected-warning {{'cleanup' attribute only applies to…
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 only applies t… 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()
Dattr-mode.c18 typedef int i16_1 __attribute((mode(HI))); typedef
20 typedef int i16_2 __attribute((__mode__(__HI__))); typedef
23 typedef float f64 __attribute((mode(DF))); typedef
26 typedef int invalid_1 __attribute((mode)); // expected-error{{'mode' attribute takes one argument}} typedef
27 typedef int invalid_2 __attribute((mode())); // expected-error{{'mode' attribute takes one argument… typedef
28 typedef int invalid_3 __attribute((mode(II))); // expected-error{{unknown machine mode}} typedef
29 typedef struct {int i,j,k;} invalid_4 __attribute((mode(SI))); // expected-error{{mode attribute on… typedef
30 typedef float invalid_5 __attribute((mode(SI))); // expected-error{{type of machine mode does not m… typedef
33 typedef unsigned unwind_word __attribute((mode(unwind_word))); typedef
35 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…
/external/llvm-project/clang/test/CodeGen/
Dannotations-global.c9 static __attribute((annotate("sfoo_0"))) __attribute((annotate("sfoo_1"))) char sfoo;
10 __attribute((annotate("foo_0"))) __attribute((annotate("foo_1"))) char foo;
12 void __attribute((annotate("ann_a_0"))) __attribute((annotate("ann_a_1"))) __attribute((annotate("a…
13 void __attribute((annotate("ann_a_0"))) __attribute((annotate("ann_a_1"))) a(char *a) { in a()
18 __attribute((address_space(1))) __attribute__((annotate("addrspace1_ann"))) char addrspace1_var;
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()
/external/llvm-project/clang/test/Modules/
Dodr_hash-vector.cpp39 __attribute((vector_size(8))) int x;
42 __attribute((vector_size(8))) int x;
45 __attribute((vector_size(16))) int x;
48 __attribute((vector_size(8))) int x1;
49 __attribute((vector_size(16))) int x2;
50 __attribute((vector_size(8))) unsigned x3;
51 __attribute((vector_size(16))) long x4;
57 __attribute((vector_size(16))) int x;
60 __attribute((vector_size(8))) unsigned x;
66 __attribute((vector_size(8))) int x1;
[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()
/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.c10 typedef int i16_1 __attribute((mode(HI))); typedef
12 typedef int i16_2 __attribute((__mode__(__HI__))); typedef
15 typedef float f64 __attribute((mode(DF))); typedef
18 typedef int invalid_1 __attribute((mode)); // expected-error{{'mode' attribute takes one argument}} typedef
19 typedef int invalid_2 __attribute((mode())); // expected-error{{'mode' attribute takes one argument… typedef
20 typedef int invalid_3 __attribute((mode(II))); // expected-error{{unknown machine mode}} typedef
21 typedef struct {int i,j,k;} invalid_4 __attribute((mode(SI))); // expected-error{{mode attribute on… typedef
22 typedef float invalid_5 __attribute((mode(SI))); // expected-error{{type of machine mode does not m… typedef
25 typedef unsigned unwind_word __attribute((mode(unwind_word))); typedef
27 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…
/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
/external/llvm-project/clang/test/SemaObjC/
Darc-nsconsumed-errors.m6 typedef void (^blk)(id arg1, __attribute((ns_consumed)) id arg2);
7 typedef void (^blk1)(__attribute((ns_consumed))id arg1, __attribute((ns_consumed)) id arg2);
8 blk a = ^void (__attribute((ns_consumed)) id arg1, __attribute((ns_consumed)) id arg2){}; // expect…
10 blk b = ^void (id arg1, __attribute((ns_consumed)) id arg2){};
12 blk c = ^void (__attribute((ns_consumed)) id arg1, __attribute((ns_consumed)) id arg2){}; // expect…
16 blk1 a1 = ^void (__attribute((ns_consumed)) id arg1, id arg2){}; // expected-error {{incompatible b…
18 blk1 b2 = ^void (id arg1, __attribute((ns_consumed)) id arg2){}; // expected-error {{incompatible b…
20 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
/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/llvm-project/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){};

1234567891011