OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:__attribute__
(Results
101 - 125
of
7811
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/external/clang/test/Sema/
overloadable.c
3
int var
__attribute__
((overloadable)); // expected-error{{'overloadable' attribute only applies to functions}}
4
void params(void)
__attribute__
((overloadable(12))); // expected-error {{'overloadable' attribute takes no arguments}}
6
int *f(int)
__attribute__
((overloadable)); // expected-note 2{{previous overload of function is here}}
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
...]
attr-decl-after-definition.c
4
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
...]
neon-vector-types.c
10
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{{'neon_vector_type' attribute takes one argument}}
23
typedef
__attribute__
((neon_vector_type(2.0))) int non_int_width; // expected-error{{'neon_vector_type' attribute requir (…)
[
all
...]
attr-capabilities.c
3
typedef int
__attribute__
((capability("role"))) ThreadRole;
4
struct
__attribute__
((shared_capability("mutex"))) Mutex {};
8
struct
__attribute__
((capability("wrong"))) IncorrectName {}; // expected-warning {{invalid capability name 'wrong'; capability name must be 'mutex' or 'role'}}
10
int Test1
__attribute__
((capability("test1"))); // expected-error {{'capability' attribute only applies to structs or typedefs}}
11
int Test2
__attribute__
((shared_capability("test2"))); // expected-error {{'shared_capability' attribute only applies to structs or typedefs}}
12
int Test3
__attribute__
((acquire_capability("test3"))); // expected-warning {{'acquire_capability' attribute only applies to functions}}
13
int Test4
__attribute__
((try_acquire_capability("test4"))); // expected-error {{'try_acquire_capability' attribute only applies to functions}}
14
int Test5
__attribute__
((release_capability("test5"))); // expected-warning {{'release_capability' attribute only applies to functions}}
16
struct
__attribute__
((capability(12))) Test3 {}; // expected-error {{'capability' attribute requires a string}}
17
struct
__attribute__
((shared_capability(Test2))) Test4 {}; // expected-error {{'shared_capability' attribute requires a (…)
[
all
...]
sentinel-attribute.c
2
int x
__attribute__
((sentinel)); //expected-warning{{'sentinel' attribute only applies to functions, methods and blocks}}
4
void f1(int a, ...)
__attribute__
((sentinel));
5
void f2(int a, ...)
__attribute__
((sentinel(1)));
7
void f3(int a, ...)
__attribute__
((sentinel("hello"))); //expected-error{{'sentinel' attribute requires parameter 1 to be an integer constant}}
8
void f4(int a, ...)
__attribute__
((sentinel(1, 2, 3))); //expected-error{{'sentinel' attribute takes no more than 2 arguments}}
9
void f4(int a, ...)
__attribute__
((sentinel(-1))); //expected-error{{parameter 1 less than zero}}
10
void f4(int a, ...)
__attribute__
((sentinel(0, 2))); // expected-error{{parameter 2 not 0 or 1}}
12
void f5(int a)
__attribute__
((sentinel)); //expected-warning{{'sentinel' attribute only supported for variadic functions}}
15
void f6()
__attribute__
((__sentinel__)); // expected-warning {{'sentinel' attribute requires named arguments}}
attr-visibility.c
3
void test0()
__attribute__
((visibility("default")));
4
void test1()
__attribute__
((visibility("hidden")));
5
void test2()
__attribute__
((visibility("internal")));
8
void test3()
__attribute__
((visibility("protected"))); // expected-warning {{target does not support 'protected' visibility; using 'default'}}
10
struct
__attribute__
((visibility("hidden"))) test4; // expected-note {{previous attribute is here}}
12
struct
__attribute__
((visibility("default"))) test4; // expected-error {{visibility does not match previous declaration}}
15
struct
__attribute__
((visibility("hidden"))) test5; // expected-note {{previous attribute is here}}
16
struct
__attribute__
((visibility("default"))) test5; // expected-error {{visibility does not match previous declaration}}
18
void test6()
__attribute__
((visibility("hidden"), // expected-note {{previous attribute is here}}
21
extern int test7
__attribute__
((visibility("default"))); // expected-note {{previous attribute is here}
[
all
...]
2009-03-09-WeakDeclarations-1.c
5
extern int ext_weak_import
__attribute__
((__weak_import__));
8
int decl_weak_import
__attribute__
((__weak_import__)); // expected-warning {{'weak_import' attribute cannot be specified on a definition}}
9
int decl_initialized_weak_import
__attribute__
((__weak_import__)) = 13; // expected-warning {{'weak_import' attribute cannot be specified on a definition}}
12
extern int ext_f(void)
__attribute__
((__weak_import__));
15
int def_f(void)
__attribute__
((__weak_import__));
16
int
__attribute__
((__weak_import__)) decl_f(void) {return 0;};
stdcall-fastcall.c
4
int
__attribute__
((stdcall)) var1; // expected-warning{{'stdcall' only applies to function types; type here is 'int'}}
5
int
__attribute__
((fastcall)) var2; // expected-warning{{'fastcall' only applies to function types; type here is 'int'}}
8
void
__attribute__
((stdcall, fastcall)) foo3(void); // expected-error{{fastcall and stdcall attributes are not compatible}}
9
void
__attribute__
((stdcall)) foo4(); // expected-note{{previous declaration is here}}
10
void
__attribute__
((fastcall)) foo4(void); // expected-error{{function declared 'fastcall' here was previously declared 'stdcall'}}
13
void rdar8876096foo1(int i, int j)
__attribute__
((fastcall, cdecl)); // expected-error {{not compatible}}
14
void rdar8876096foo2(int i, int j)
__attribute__
((fastcall, stdcall)); // expected-error {{not compatible}}
15
void rdar8876096foo3(int i, int j)
__attribute__
((fastcall, regparm(2))); // expected-error {{not compatible}}
16
void rdar8876096foo4(int i, int j)
__attribute__
((stdcall, cdecl)); // expected-error {{not compatible}}
17
void rdar8876096foo5(int i, int j)
__attribute__
((stdcall, fastcall)); // expected-error {{not compatible}
[
all
...]
attr-minsize.c
3
int foo()
__attribute__
((__minsize__));
5
int var1
__attribute__
((__minsize__)); // expected-error{{'__minsize__' attribute only applies to functions and methods}}
/external/clang/test/SemaObjC/
iboutletcollection-attr.m
8
__attribute__
((iboutletcollection(I))) id ivar1;
9
__attribute__
((iboutletcollection(id))) id ivar2;
10
__attribute__
((iboutletcollection())) id ivar3;
11
__attribute__
((iboutletcollection)) id ivar4;
13
@property (nonatomic, retain)
__attribute__
((iboutletcollection(I))) id prop1;
14
@property (nonatomic, retain)
__attribute__
((iboutletcollection(id))) id prop2;
15
@property (nonatomic, retain)
__attribute__
((iboutletcollection())) id prop3;
16
@property (nonatomic, retain)
__attribute__
((iboutletcollection)) id prop4;
21
__attribute__
((iboutletcollection(I, 1))) id ivar1; // expected-error {{expected ')'}} expected-note {{to match}}
22
__attribute__
((iboutletcollection(B))) id ivar2; // expected-error {{unknown type name 'B'}
[
all
...]
builtin_objc_msgSend.m
12
extern
__attribute__
((visibility("default"))) id objc_msgSendSuper(struct objc_super *super, SEL op, ...)
13
__attribute__
((availability(macosx,introduced=10.0)));
15
extern
__attribute__
((visibility("default"))) void objc_msgSendSuper_stret(struct objc_super *super, SEL op, ...)
16
__attribute__
((availability(macosx,introduced=10.0)));
18
extern
__attribute__
((visibility("default"))) void objc_msgSend_stret(id self, SEL op, ...)
19
__attribute__
((availability(macosx,introduced=10.0)));
/external/clang/test/SemaCXX/
value-dependent-exprs.cpp
29
__attribute__
((nonnull(1 + I)))
30
__attribute__
((constructor(1 + I)))
31
__attribute__
((destructor(1 + I)))
32
__attribute__
((sentinel(1 + I, 2 + I))),
33
__attribute__
((reqd_work_group_size(1 + I, 2 + I, 3 + I))),
34
__attribute__
((format_arg(1 + I))),
35
__attribute__
((aligned(1 + I))),
36
__attribute__
((regparm(1 + I)));
38
typedef int int_a0
__attribute__
((address_space(1 + B)));
/frameworks/rs/scriptc/
rs_object.rsh
33
extern void
__attribute__
((overloadable))
38
extern void
__attribute__
((overloadable))
43
extern void
__attribute__
((overloadable))
48
extern void
__attribute__
((overloadable))
53
extern void
__attribute__
((overloadable))
60
extern void
__attribute__
((overloadable))
65
extern void
__attribute__
((overloadable))
70
extern void
__attribute__
((overloadable))
75
extern void
__attribute__
((overloadable))
80
extern void
__attribute__
((overloadable)
[
all
...]
/prebuilts/sdk/renderscript/include/
rs_object.rsh
33
extern void
__attribute__
((overloadable))
38
extern void
__attribute__
((overloadable))
43
extern void
__attribute__
((overloadable))
48
extern void
__attribute__
((overloadable))
53
extern void
__attribute__
((overloadable))
60
extern void
__attribute__
((overloadable))
65
extern void
__attribute__
((overloadable))
70
extern void
__attribute__
((overloadable))
75
extern void
__attribute__
((overloadable))
80
extern void
__attribute__
((overloadable)
[
all
...]
/prebuilts/sdk/tools/darwin/renderscript/include/
rs_object.rsh
33
extern void
__attribute__
((overloadable))
38
extern void
__attribute__
((overloadable))
43
extern void
__attribute__
((overloadable))
48
extern void
__attribute__
((overloadable))
53
extern void
__attribute__
((overloadable))
60
extern void
__attribute__
((overloadable))
65
extern void
__attribute__
((overloadable))
70
extern void
__attribute__
((overloadable))
75
extern void
__attribute__
((overloadable))
80
extern void
__attribute__
((overloadable)
[
all
...]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
TestClz.rs
23
char
__attribute__
((kernel)) testClzCharChar(char inValue) {
27
char2
__attribute__
((kernel)) testClzChar2Char2(char2 inValue) {
31
char3
__attribute__
((kernel)) testClzChar3Char3(char3 inValue) {
35
char4
__attribute__
((kernel)) testClzChar4Char4(char4 inValue) {
39
uchar
__attribute__
((kernel)) testClzUcharUchar(uchar inValue) {
43
uchar2
__attribute__
((kernel)) testClzUchar2Uchar2(uchar2 inValue) {
47
uchar3
__attribute__
((kernel)) testClzUchar3Uchar3(uchar3 inValue) {
51
uchar4
__attribute__
((kernel)) testClzUchar4Uchar4(uchar4 inValue) {
55
short
__attribute__
((kernel)) testClzShortShort(short inValue) {
59
short2
__attribute__
((kernel)) testClzShort2Short2(short2 inValue)
[
all
...]
/external/clang/test/CodeGen/
2007-06-15-AnnotateAttribute.c
5
int X
__attribute__
((annotate("GlobalValAnnotation")));
8
int foo(int y)
__attribute__
((annotate("GlobalValAnnotation")))
9
__attribute__
((noinline));
11
int foo(int y
__attribute__
((annotate("LocalValAnnotation")))) {
12
int x
__attribute__
((annotate("LocalValAnnotation")));
18
static int a
__attribute__
((annotate("GlobalValAnnotation")));
2008-03-03-CtorAttrType.c
2
int
__attribute__
((constructor)) foo(void) {
5
void
__attribute__
((constructor)) bar(void) {}
merge-attrs.c
3
void *malloc(__SIZE_TYPE__ size)
__attribute__
((__nothrow__));
9
void *malloc(__SIZE_TYPE__ size)
__attribute__
((__nothrow__));
overloadable.c
4
int
__attribute__
((overloadable)) f(int x) { return x; }
5
float
__attribute__
((overloadable)) f(float x) { return x; }
6
double
__attribute__
((overloadable)) f(double x) { return x; }
7
double _Complex
__attribute__
((overloadable)) f(double _Complex x) { return x; }
8
typedef short v4hi
__attribute__
((__vector_size__ (8)));
9
v4hi
__attribute__
((overloadable)) f(v4hi x) { return x; }
12
void
__attribute__
((overloadable)) f(struct X (*ptr)[10]) { }
14
void
__attribute__
((overloadable)) f(int x, int y, ...) { }
/external/clang/test/CodeGenCUDA/Inputs/
cuda.h
5
#define __constant__
__attribute__
((constant))
6
#define __device__
__attribute__
((device))
7
#define __global__
__attribute__
((global))
8
#define __host__
__attribute__
((host))
9
#define __shared__
__attribute__
((shared))
10
#define __launch_bounds__(...)
__attribute__
((launch_bounds(__VA_ARGS__)))
/external/clang/test/PCH/Inputs/
cuda.h
5
#define __constant__
__attribute__
((constant))
6
#define __device__
__attribute__
((device))
7
#define __global__
__attribute__
((global))
8
#define __host__
__attribute__
((host))
9
#define __shared__
__attribute__
((shared))
10
#define __launch_bounds__(...)
__attribute__
((launch_bounds(__VA_ARGS__)))
/external/clang/test/SemaCUDA/Inputs/
cuda.h
5
#define __constant__
__attribute__
((constant))
6
#define __device__
__attribute__
((device))
7
#define __global__
__attribute__
((global))
8
#define __host__
__attribute__
((host))
9
#define __shared__
__attribute__
((shared))
10
#define __launch_bounds__(...)
__attribute__
((launch_bounds(__VA_ARGS__)))
/external/clang/test/CodeGenCXX/
aarch64-mangle-neon-vectors.cpp
15
typedef
__attribute__
((neon_vector_type(8))) int8_t int8x8_t;
16
typedef
__attribute__
((neon_vector_type(16))) int8_t int8x16_t;
17
typedef
__attribute__
((neon_vector_type(4))) int16_t int16x4_t;
18
typedef
__attribute__
((neon_vector_type(8))) int16_t int16x8_t;
19
typedef
__attribute__
((neon_vector_type(2))) int int32x2_t;
20
typedef
__attribute__
((neon_vector_type(4))) int int32x4_t;
21
typedef
__attribute__
((neon_vector_type(2))) int64_t int64x2_t;
22
typedef
__attribute__
((neon_vector_type(8))) uint8_t uint8x8_t;
23
typedef
__attribute__
((neon_vector_type(16))) uint8_t uint8x16_t;
24
typedef
__attribute__
((neon_vector_type(4))) uint16_t uint16x4_t
[
all
...]
/external/clang/test/Parser/
knr_parameter_attributes.c
4
int f(int i
__attribute__
((__unused__)))
9
int i
__attribute__
((__unused__));
Completed in 433 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>