Home
last modified time | relevance | path

Searched refs:__attribute__ (Results 1 – 25 of 2055) sorted by relevance

12345678910>>...83

/external/clang/test/Parser/
Dattributes.c3 int __attribute__(()) x;
5 __inline void __attribute__((__always_inline__, __nodebug__))
10 __attribute__(()) y; // expected-warning {{defaults to 'int'}}
13 int (__attribute__(()) *z)(long y);
16 void f1(__attribute__(()) int x);
18 int f2(y, __attribute__(()) x); // expected-error {{expected identifier}}
22 void f3(__attribute__(()) x, // expected-warning {{defaults to 'int'}}
25 void f4(__attribute__(())); // expected-error {{expected parameter declarator}}
29 int baz(int (__attribute__(()) *x)(long y));
31 void g1(void (*f1)(__attribute__(()) int x));
[all …]
/external/clang/test/Sema/
Dcallingconv.c3 void __attribute__((fastcall)) foo(float *a) { in foo()
6 void __attribute__((stdcall)) bar(float *a) { in bar()
9 void __attribute__((fastcall(1))) baz(float *a) { // expected-error {{'fastcall' attribute takes no… in baz()
12 void __attribute__((fastcall)) test0() { // expected-error {{function with no prototype cannot use … in test0()
15 void __attribute__((fastcall)) test1(void) { in test1()
18 void __attribute__((fastcall)) test2(int a, ...) { // expected-error {{variadic function cannot use… in test2()
21 void __attribute__((cdecl)) ctest0() {} in ctest0()
23 void __attribute__((cdecl(1))) ctest1(float x) {} // expected-error {{'cdecl' attribute takes no ar… in ctest1()
25 void (__attribute__((fastcall)) *pfoo)(float*) = foo;
27 void (__attribute__((stdcall)) *pbar)(float*) = bar;
[all …]
Doverloadable.c3 int var __attribute__((overloadable)); // expected-error{{'overloadable' attribute can only be appl…
4 void params(void) __attribute__((overloadable(12))); // expected-error {{'overloadable' attribute t…
6 int *f(int) __attribute__((overloadable)); // expected-note 2{{previous overload of function is her…
10 double *f(double) __attribute__((overloadable)); // okay, new
18 int *accept_funcptr(int (*)()) __attribute__((overloadable)); // \
20 float *accept_funcptr(int (*)(int, double)) __attribute__((overloadable)); // \
31 int* accept_struct(struct X x) __attribute__((__overloadable__));
32 float* accept_struct(struct Y y) __attribute__((overloadable));
39 double *f(int) __attribute__((overloadable)); // expected-error{{conflicting types for 'f'}}
41 double promote(float) __attribute__((__overloadable__)); // expected-note {{candidate}}
[all …]
Dattr-format.c5 void a(const char *a, ...) __attribute__((format(printf, 1,2))); // no-error
6 void b(const char *a, ...) __attribute__((format(printf, 1,1))); // expected-error {{'format' attri…
7 void c(const char *a, ...) __attribute__((format(printf, 0,2))); // expected-error {{'format' attri…
8 void d(const char *a, int c) __attribute__((format(printf, 1,2))); // expected-error {{format attri…
9 void e(char *str, int c, ...) __attribute__((format(printf, 2,3))); // expected-error {{format argu…
12 void f(xpto c, va_list list) __attribute__((format(printf, 1, 0))); // no-error
13 void g(xpto c) __attribute__((format(printf, 1, 0))); // no-error
15 void y(char *str) __attribute__((format(strftime, 1,0))); // no-error
16 void z(char *str, int c, ...) __attribute__((format(strftime, 1,2))); // expected-error {{strftime …
18 int (*f_ptr)(char*,...) __attribute__((format(printf, 1,2))); // no-error
[all …]
Dwarn-type-safety.c10__attribute__(( pointer_with_type_tag )); // expected-error {{attribute requires parameter 1 to be…
13__attribute__(( pointer_with_type_tag(mpi,0,7) )); // expected-error {{attribute parameter 2 is ou…
16__attribute__(( pointer_with_type_tag(mpi,3,7) )); // expected-error {{attribute parameter 2 is ou…
19__attribute__(( pointer_with_type_tag(mpi,1,0) )); // expected-error {{attribute parameter 3 is ou…
22__attribute__(( pointer_with_type_tag(mpi,1,3) )); // expected-error {{attribute parameter 3 is ou…
25__attribute__(( pointer_with_type_tag(mpi,0x8000000000000001ULL,1) )); // expected-error {{attribu…
30__attribute__(( pointer_with_type_tag(mpi,x,2) )); // expected-error {{attribute requires paramete…
33__attribute__(( pointer_with_type_tag(mpi,1,x) )); // expected-error {{attribute requires paramete…
35 int wrong9 __attribute__(( pointer_with_type_tag(mpi,1,2) )); // expected-error {{attribute only ap…
38__attribute__(( pointer_with_type_tag(mpi,1,2) )); // expected-error {{'pointer_with_type_tag' att…
[all …]
Daarch64-neon-vector-types.c10 typedef __attribute__((neon_vector_type(2))) int int32x2_t;
11 typedef __attribute__((neon_vector_type(4))) int int32x4_t;
12 typedef __attribute__((neon_vector_type(1))) uint64_t uint64x1_t;
13 typedef __attribute__((neon_vector_type(2))) uint64_t uint64x2_t;
14 typedef __attribute__((neon_vector_type(2))) float32_t float32x2_t;
15 typedef __attribute__((neon_vector_type(4))) float32_t float32x4_t;
16 typedef __attribute__((neon_polyvector_type(16))) poly8_t poly8x16_t;
17 typedef __attribute__((neon_polyvector_type(8))) poly16_t poly16x8_t;
20 typedef __attribute__((neon_vector_type(2, 4))) int only_one_arg; // expected-error{{attribute take…
23 typedef __attribute__((neon_vector_type(2.0))) int non_int_width; // expected-error{{attribute requ…
[all …]
Dneon-vector-types.c9 typedef __attribute__((neon_vector_type(2))) int int32x2_t;
10 typedef __attribute__((neon_vector_type(4))) int int32x4_t;
11 typedef __attribute__((neon_vector_type(1))) uint64_t uint64x1_t;
12 typedef __attribute__((neon_vector_type(2))) uint64_t uint64x2_t;
13 typedef __attribute__((neon_vector_type(2))) float32_t float32x2_t;
14 typedef __attribute__((neon_vector_type(4))) float32_t float32x4_t;
15 typedef __attribute__((neon_polyvector_type(16))) poly8_t poly8x16_t;
16 typedef __attribute__((neon_polyvector_type(8))) poly16_t poly16x8_t;
19 typedef __attribute__((neon_vector_type(2, 4))) int only_one_arg; // expected-error{{'neon_vector_t…
22 typedef __attribute__((neon_vector_type(2.0))) int non_int_width; // expected-error{{'neon_vector_t…
[all …]
Dattr-availability.c3 void f0() __attribute__((availability(macosx,introduced=10.4,deprecated=10.2))); // expected-warnin…
4 void f1() __attribute__((availability(ios,obsoleted=2.1,deprecated=3.0))); // expected-warning{{fe…
5 void f2() __attribute__((availability(ios,introduced=2.1,deprecated=2.1)));
7 void f3() __attribute__((availability(otheros,introduced=2.2))); // expected-warning{{unknown platf…
11 ATSFontGetName(const char *oName) __attribute__((availability(macosx,introduced=8.0,deprecated=9.0,…
14 ATSFontGetPostScriptName(int flags) __attribute__((availability(macosx,introduced=8.0,obsoleted=9.0…
22 __attribute__((availability(macos, unavailable))) // expected-warning {{attribute 'availability' is…
28 void f4(int) __attribute__((availability(ios,deprecated=3.0)));
29 void f4(int) __attribute__((availability(ios,introduced=4.0))); // expected-warning {{feature canno…
31 void f5(int) __attribute__((availability(ios,deprecated=3.0),
[all …]
Dattr-decl-after-definition.c4 void foo() __attribute__((unused));
5 void foo() __attribute__((unused));
7 void foo() __attribute__((constructor)); // expected-warning {{must precede definition}}
13 int bar __attribute__((weak));
14 int bar __attribute__((used));
15 extern int bar __attribute__((weak));
17 int bar __attribute__((weak)); // no warning as it matches the existing
19 int bar __attribute__((used,
25 struct __attribute__((visibility("hidden"))) zed; // expected-warning {{must precede definition}}
27 struct __attribute__((visibility("hidden"))) zed2 {
[all …]
Dalloc_size.c3 void* my_malloc(unsigned char) __attribute__((alloc_size(1)));
4 void* my_calloc(unsigned char, short) __attribute__((alloc_size(1,2)));
5 void* my_realloc(void*, unsigned) __attribute__((alloc_size(2)));
8 void* fn1(int) __attribute__((alloc_size("xpto"))); // expected-error{{'alloc_size' attribute requi…
10 void* fn2(void*) __attribute__((alloc_size(1))); // expected-error{{'alloc_size' attribute requires…
12 void* fn3(unsigned) __attribute__((alloc_size(0))); // expected-error{{attribute parameter 1 is out…
13 void* fn4(unsigned) __attribute__((alloc_size(2))); // expected-error{{attribute parameter 1 is out…
15 void fn5(unsigned) __attribute__((alloc_size(1))); // expected-warning{{only applies to functions t…
16 char fn6(unsigned) __attribute__((alloc_size(1))); // expected-warning{{only applies to functions t…
18 void* fn7(unsigned) __attribute__((alloc_size)); // expected-error {{attribute takes at least 1 arg…
[all …]
/external/clang/lib/Headers/
Demmintrin.h33 typedef double __m128d __attribute__((__vector_size__(16)));
34 typedef long long __m128i __attribute__((__vector_size__(16)));
37 typedef double __v2df __attribute__ ((__vector_size__ (16)));
38 typedef long long __v2di __attribute__ ((__vector_size__ (16)));
39 typedef short __v8hi __attribute__((__vector_size__(16)));
40 typedef char __v16qi __attribute__((__vector_size__(16)));
42 static __inline__ __m128d __attribute__((__always_inline__, __nodebug__))
49 static __inline__ __m128d __attribute__((__always_inline__, __nodebug__))
55 static __inline__ __m128d __attribute__((__always_inline__, __nodebug__))
62 static __inline__ __m128d __attribute__((__always_inline__, __nodebug__))
[all …]
Dxmmintrin.h33 typedef int __v4si __attribute__((__vector_size__(16)));
34 typedef float __v4sf __attribute__((__vector_size__(16)));
35 typedef float __m128 __attribute__((__vector_size__(16)));
43 static __inline__ __m128 __attribute__((__always_inline__, __nodebug__))
50 static __inline__ __m128 __attribute__((__always_inline__, __nodebug__))
56 static __inline__ __m128 __attribute__((__always_inline__, __nodebug__))
63 static __inline__ __m128 __attribute__((__always_inline__, __nodebug__))
69 static __inline__ __m128 __attribute__((__always_inline__, __nodebug__))
76 static __inline__ __m128 __attribute__((__always_inline__, __nodebug__))
82 static __inline__ __m128 __attribute__((__always_inline__, __nodebug__))
[all …]
Davxintrin.h31 typedef double __v4df __attribute__ ((__vector_size__ (32)));
32 typedef float __v8sf __attribute__ ((__vector_size__ (32)));
33 typedef long long __v4di __attribute__ ((__vector_size__ (32)));
34 typedef int __v8si __attribute__ ((__vector_size__ (32)));
35 typedef short __v16hi __attribute__ ((__vector_size__ (32)));
36 typedef char __v32qi __attribute__ ((__vector_size__ (32)));
38 typedef float __m256 __attribute__ ((__vector_size__ (32)));
39 typedef double __m256d __attribute__((__vector_size__(32)));
40 typedef long long __m256i __attribute__((__vector_size__(32)));
43 static __inline __m256d __attribute__((__always_inline__, __nodebug__))
[all …]
Dmmintrin.h31 typedef long long __m64 __attribute__((__vector_size__(8)));
33 typedef int __v2si __attribute__((__vector_size__(8)));
34 typedef short __v4hi __attribute__((__vector_size__(8)));
35 typedef char __v8qi __attribute__((__vector_size__(8)));
37 static __inline__ void __attribute__((__always_inline__, __nodebug__))
43 static __inline__ __m64 __attribute__((__always_inline__, __nodebug__))
49 static __inline__ int __attribute__((__always_inline__, __nodebug__))
55 static __inline__ __m64 __attribute__((__always_inline__, __nodebug__))
61 static __inline__ long long __attribute__((__always_inline__, __nodebug__))
67 static __inline__ __m64 __attribute__((__always_inline__, __nodebug__))
[all …]
Dxopintrin.h37 static __inline__ __m128i __attribute__((__always_inline__, __nodebug__))
43 static __inline__ __m128i __attribute__((__always_inline__, __nodebug__))
49 static __inline__ __m128i __attribute__((__always_inline__, __nodebug__))
55 static __inline__ __m128i __attribute__((__always_inline__, __nodebug__))
61 static __inline__ __m128i __attribute__((__always_inline__, __nodebug__))
67 static __inline__ __m128i __attribute__((__always_inline__, __nodebug__))
73 static __inline__ __m128i __attribute__((__always_inline__, __nodebug__))
79 static __inline__ __m128i __attribute__((__always_inline__, __nodebug__))
85 static __inline__ __m128i __attribute__((__always_inline__, __nodebug__))
91 static __inline__ __m128i __attribute__((__always_inline__, __nodebug__))
[all …]
/external/clang/test/CodeGen/
Dattributes.c5 int t5 __attribute__((weak)) = 2;
9 struct s0 t13 __attribute__((section("SECT"))) = { 0 };
13 static int x __attribute__((section("SECT"))) = 0; in t14()
17 extern int t18 __attribute__((weak_import));
21 extern int t16 __attribute__((weak_import));
24 int t6 __attribute__((visibility("protected")));
27 int t12 __attribute__((section("SECT")));
31 void t9() __attribute__((weak, alias("__t8")));
34 int __attribute__((weak_import)) t15(void);
40 void t1() __attribute__((noreturn));
[all …]
Dstdcall-fastcall.c3 void __attribute__((fastcall)) f1(void);
4 void __attribute__((stdcall)) f2(void);
5 void __attribute__((thiscall)) f3(void);
6 void __attribute__((fastcall)) f4(void) { in f4()
11 void __attribute__((stdcall)) f5(void) { in f5()
16 void __attribute__((thiscall)) f6(void) { in f6()
23 void (__attribute__((fastcall)) *pf1)(void) = f1;
24 void (__attribute__((stdcall)) *pf2)(void) = f2;
25 void (__attribute__((thiscall)) *pf3)(void) = f3;
26 void (__attribute__((fastcall)) *pf4)(void) = f4;
[all …]
/external/clang/test/SemaObjC/
Dmethod-attributes.m6 -t1 __attribute__((noreturn)); method
7 - (NSString *)stringByAppendingFormat:(NSString *)format, ... __attribute__((format(__NSString__, 1…
8 -(void) m0 __attribute__((noreturn)); method
9 -(void) m1 __attribute__((unused)); method
14 - (int) foo1: (int)arg1 __attribute__((deprecated));
18 - (int) foo2: (int)arg1 __attribute__((deprecated)) __attribute__((unavailable)); // expected-note …
19 - (int) foo3: (int)arg1 __attribute__((deprecated)) __attribute__((unavailable)) __attribute__((ns_…
23 - (int) foo: (int)arg1 __attribute__((deprecated)){ // expected-warning {{attributes on method imp…
29 - (int) foo2: (int)arg1 __attribute__((deprecated)) { // expected-warning {{attributes on method i…
32 - (int) foo3: (int)arg1 __attribute__((deprecated)) __attribute__((unavailable)) __attribute__((ns_…
[all …]
/external/clang/test/CodeGenCXX/
Daarch64-mangle-neon-vectors.cpp16 typedef __attribute__((neon_vector_type(8))) int8_t int8x8_t;
17 typedef __attribute__((neon_vector_type(16))) int8_t int8x16_t;
18 typedef __attribute__((neon_vector_type(4))) int16_t int16x4_t;
19 typedef __attribute__((neon_vector_type(8))) int16_t int16x8_t;
20 typedef __attribute__((neon_vector_type(2))) int int32x2_t;
21 typedef __attribute__((neon_vector_type(4))) int int32x4_t;
22 typedef __attribute__((neon_vector_type(2))) int64_t int64x2_t;
23 typedef __attribute__((neon_vector_type(8))) uint8_t uint8x8_t;
24 typedef __attribute__((neon_vector_type(16))) uint8_t uint8x16_t;
25 typedef __attribute__((neon_vector_type(4))) uint16_t uint16x4_t;
[all …]
/external/qemu/hw/
Dbt.h29 } __attribute__((packed)) bdaddr_t;
449 } __attribute__ ((packed)) inquiry_cp;
455 } __attribute__ ((packed)) status_bdaddr_rp;
467 } __attribute__ ((packed)) periodic_inquiry_cp;
480 } __attribute__ ((packed)) create_conn_cp;
487 } __attribute__ ((packed)) disconnect_cp;
494 } __attribute__ ((packed)) add_sco_cp;
501 } __attribute__ ((packed)) create_conn_cancel_cp;
507 } __attribute__ ((packed)) create_conn_cancel_rp;
514 } __attribute__ ((packed)) accept_conn_req_cp;
[all …]
/external/clang/test/SemaCXX/
Dattr-declspec-ignored.cpp4__attribute__((visibility("hidden"))) __attribute__((aligned)) class A; // expected-warning{{attr…
6__attribute__((visibility("hidden"))) __attribute__((aligned)) struct B; // expected-warning{{att…
8__attribute__((visibility("hidden"))) __attribute__((aligned)) union C; // expected-warning{{attr…
10__attribute__((visibility("hidden"))) __attribute__((aligned)) enum D {D}; // expected-warning{{a…
15 __attribute__((visibility("hidden"))) __attribute__((aligned)) class A {} a;
16 __attribute__((visibility("hidden"))) __attribute__((aligned)) struct B {} b;
17 __attribute__((visibility("hidden"))) __attribute__((aligned)) union C {} c;
18 __attribute__((visibility("hidden"))) __attribute__((aligned)) enum D {D} d;
Dattr-noreturn.cpp7 __attribute__((noreturn)) void fail();
21 void f0() __attribute__((__noreturn__));
28 void (*fp1)() __attribute__((noreturn)) = f0; in test_f0a()
32 void f0(int) __attribute__((__noreturn__));
36 void (*fp1)() __attribute__((noreturn)) = f0; in test_f0b()
40 typedef void (* noreturn_fp)() __attribute__((noreturn));
51 int blah() __attribute__((noreturn));
62 void foo() __attribute__((__noreturn__));
69 void bar() __attribute__((__noreturn__));
76 void baz() __attribute__((__noreturn__));
[all …]
/external/elfutils/libebl/
Deblopenbackend.c452 default_object_type_name (int ignore __attribute__ ((unused)), in default_object_type_name()
453 char *buf __attribute__ ((unused)), in default_object_type_name()
454 size_t len __attribute__ ((unused))) in default_object_type_name()
460 default_reloc_type_name (int ignore __attribute__ ((unused)), in default_reloc_type_name()
461 char *buf __attribute__ ((unused)), in default_reloc_type_name()
462 size_t len __attribute__ ((unused))) in default_reloc_type_name()
468 default_reloc_type_check (int ignore __attribute__ ((unused))) in default_reloc_type_check()
474 default_reloc_valid_use (Elf *elf __attribute__ ((unused)), in default_reloc_valid_use()
475 int ignore __attribute__ ((unused))) in default_reloc_valid_use()
481 default_reloc_simple_type (Ebl *eh __attribute__ ((unused)), in default_reloc_simple_type()
[all …]
/external/clang/test/Misc/
Dast-dump-attr.cpp4 __attribute__((unused));
9 __attribute__((unused));
30 int TestAlignedNull __attribute__((aligned));
35 int TestAlignedExpr __attribute__((aligned(4)));
40 int TestEnum __attribute__((visibility("default")));
44 class __attribute__((lockable)) Mutex {
46 int TestExpr __attribute__((guarded_by(mu1)));
51 class Mutex TestVariadicExpr __attribute__((acquired_after(mu1, mu2)));
58 int TestFunction __attribute__((cleanup(function1))); in function1()
64 __attribute__((pointer_with_type_tag(ident1,1,2)));
[all …]
/external/clang/test/PCH/
Dthread-safety-attrs.cpp11 #define LOCKABLE __attribute__ ((lockable))
12 #define SCOPED_LOCKABLE __attribute__ ((scoped_lockable))
13 #define GUARDED_BY(x) __attribute__ ((guarded_by(x)))
14 #define GUARDED_VAR __attribute__ ((guarded_var))
15 #define PT_GUARDED_BY(x) __attribute__ ((pt_guarded_by(x)))
16 #define PT_GUARDED_VAR __attribute__ ((pt_guarded_var))
17 #define ACQUIRED_AFTER(...) __attribute__ ((acquired_after(__VA_ARGS__)))
18 #define ACQUIRED_BEFORE(...) __attribute__ ((acquired_before(__VA_ARGS__)))
19 #define EXCLUSIVE_LOCK_FUNCTION(...) __attribute__ ((exclusive_lock_function(__VA_ARGS__)))
20 #define SHARED_LOCK_FUNCTION(...) __attribute__ ((shared_lock_function(__VA_ARGS__)))
[all …]

12345678910>>...83