Searched refs:__attribute (Results 1 - 25 of 92) sorted by relevance

1234

/external/clang/test/CodeGen/
H A 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("ann_a_2"))) __attribute((annotate("ann_a_3"))) a(char *a);
12 void __attribute((annotate("ann_a_0"))) __attribute((annotat
[all...]
H A Dannotations-loc.c7 int __attribute((annotate("foo"))) foo(void) { return 0; }
H A D2011-03-08-ZeroFieldUnionInitializer.c4 struct { } __attribute((packed));
H A Dalign-local.c3 typedef struct __attribute((aligned(16))) {int x[4];} ff; function
9 struct {int x[4];} b __attribute((aligned(16)));
H A Dattr-naked.c15 __attribute((naked, always_inline)) void t2() {
19 __attribute((naked)) void t3(int x) {
H A Dweak_constant.c4 const int x __attribute((weak)) = 123;
H A Dpr2394.c2 struct __attribute((packed)) x {int a : 24;};
H A Dpragma-visibility.c13 extern __attribute((visibility("default"))) int z;
22 __attribute((visibility("default"))) void g();
H A Dalign-param.c14 int test2(struct X x __attribute((aligned(16)))) { argument
H A Dlanai-regparm.c6 void f2(int a, int b) __attribute((regparm(0)));
H A Dregparm-flag.c6 void f2(int a, int b) __attribute((regparm(0)));
H A Dpragma-weak.c87 void __declfirstattr(void) __attribute((noinline));
94 //// ensure that pragma weak/__attribute((weak)) play nice
98 __attribute((weak)) void mix(void) { }
104 void __mix2(void) __attribute((noinline));
105 void __mix2(void) __attribute((noinline));
109 ////////////// test #pragma weak/__attribute combinations
113 void both(void) __attribute((alias("__both")));
123 void both2(void) __attribute((alias("__both2"))); // first, wins
130 void __a1(void) __attribute((noinline));
136 __attribute((pur
[all...]
/external/clang/test/Sema/
H A Dattr-tls_model.c7 int f() __attribute((tls_model("global-dynamic"))); // expected-error {{'tls_model' attribute only applies to thread-local variables}}
9 int x __attribute((tls_model("global-dynamic"))); // expected-error {{'tls_model' attribute only applies to thread-local variables}}
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' attribute takes one argument}}
13 static __thread int y __attribute((tls_model(123))); // expected-error {{'tls_model' attribute requires a string}}
14 static __thread int y __attribute((tls_model("foobar"))); // expected-error {{tls_model must be "global-dynamic", "local-dynamic", "initial-exec" or "local-exec"}}
H A 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 return values that are pointers}}
12 int returns_int (void) __attribute((malloc)); // expected-warning {{attribute only applies to return values that are pointers}}
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_
[all...]
H A Dattr-regparm.c3 __attribute((regparm(2))) int x0(void);
4 __attribute((regparm(1.0))) int x1(void); // expected-error{{'regparm' attribute requires an integer constant}}
5 __attribute((regparm(-1))) int x2(void); // expected-error{{'regparm' parameter must be between 0 and 3 inclusive}}
6 __attribute((regparm(5))) int x3(void); // expected-error{{'regparm' parameter must be between 0 and 3 inclusive}}
7 __attribute((regparm(5,3))) int x4(void); // expected-error{{'regparm' attribute takes one argument}}
H A 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'}} // expected-note {{previous definition}}
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 be an alias}}
H A 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'}}
H A 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}}
12 int v2 __attribute((cleanup(1, 2))); // expected-error {{'cleanup' attribute takes one argument}}
14 static int v3 __attribute((cleanup(c1))); // expected-warning {{'cleanup' attribute ignored}}
16 int v4 __attribute((cleanup(h))); // expected-error {{use of undeclared identifier 'h'}}
18 int v5 __attribute((cleanup(c1)));
19 int v6 __attribute((cleanup(v3))); // expected-error {{'cleanup' argument 'v3' is not a function}}
38 __attribute((cleanu
[all...]
H A Dmips16_attr_allowed.c23 __attribute((nomips16)) int a; // expected-error {{attribute only applies to functions}}
25 __attribute((mips16)) int b; // expected-error {{attribute only applies to functions}}
/external/clang/test/PCH/
H A Dobjc_boxable_record_attr.h2 typedef struct __attribute((objc_boxable)) boxable boxable;
/external/clang/test/CodeGenCXX/
H A Denum.cpp4 enum A { a } __attribute((packed));
/external/libxml2/
H A Delfgcchack.h69 extern __typeof (__xmlGenericError) __xmlGenericError __attribute((alias("__xmlGenericError__internal_alias")));
72 extern __typeof (__xmlGenericError) __xmlGenericError__internal_alias __attribute((visibility("hidden")));
79 extern __typeof (__xmlGenericErrorContext) __xmlGenericErrorContext __attribute((alias("__xmlGenericErrorContext__internal_alias")));
82 extern __typeof (__xmlGenericErrorContext) __xmlGenericErrorContext__internal_alias __attribute((visibility("hidden")));
91 extern __typeof (docbCreatePushParserCtxt) docbCreatePushParserCtxt __attribute((alias("docbCreatePushParserCtxt__internal_alias")));
94 extern __typeof (docbCreatePushParserCtxt) docbCreatePushParserCtxt__internal_alias __attribute((visibility("hidden")));
103 extern __typeof (htmlAttrAllowed) htmlAttrAllowed __attribute((alias("htmlAttrAllowed__internal_alias")));
106 extern __typeof (htmlAttrAllowed) htmlAttrAllowed__internal_alias __attribute((visibility("hidden")));
115 extern __typeof (htmlAutoCloseTag) htmlAutoCloseTag __attribute((alias("htmlAutoCloseTag__internal_alias")));
118 extern __typeof (htmlAutoCloseTag) htmlAutoCloseTag__internal_alias __attribute((visibilit
[all...]
/external/clang/test/SemaCXX/
H A Dattr-visibility.cpp20 } __attribute((visibility("default"))); // expected-warning {{attribute 'visibility' after definition is ignored}}
/external/libcap-ng/libcap-ng-0.7/bindings/python/
H A Dcapng_swig.i39 #define __attribute(X) /*nothing*/
/external/clang/test/Index/
H A Dcomplete-with-annotations.cpp4 int field __attribute((annotate("one"), annotate("two"), annotate("three")));

Completed in 1165 milliseconds

1234