OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:__attribute
(Results
1 - 25
of
248
) sorted by null
1
2
3
4
5
6
7
8
9
10
/external/clang/test/PCH/
objc_boxable_record_attr.h
2
typedef struct
__attribute
((objc_boxable)) boxable boxable;
/toolchain/binutils/binutils-2.27/gold/testsuite/
script_test_12b.c
1
int b1[]
__attribute
((section(".x1"))) = { 0x85, 0x86, 0x87, 0x88 };
2
int b2[]
__attribute
((section(".x2"))) = { 0x95, 0x96, 0x97, 0x98 };
3
int b3[]
__attribute
((section(".x3"))) = { 0xa5, 0xa6, 0xa7, 0xa8 };
4
int b4[]
__attribute
((section(".x4"))) = { 0xff, 0xff, 0xff, 0xff };
script_test_11a.c
3
static unsigned int buffer1[256]
__attribute
((used));
4
static unsigned int buffer2[256]
__attribute
((used)) = { 1 };
/external/clang/test/SemaObjC/
attr-malloc.m
4
- (id) test1
__attribute
((malloc)); // expected-warning {{attribute only applies to functions}}
5
- (int) test2
__attribute
((malloc)); // expected-warning {{attribute only applies to functions}}
8
id bar(void)
__attribute
((malloc)); // no-warning
11
bptr baz(void)
__attribute
((malloc)); // no-warning
13
__attribute
((malloc)) id (*f)(); // expected-warning {{attribute only applies to functions}}
14
__attribute
((malloc)) bptr (*g)(); // expected-warning {{attribute only applies to functions}}
15
__attribute
((malloc)) void *(^h)(); // expected-warning {{attribute only applies to functions}}
arc-nsconsumed-errors.m
4
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){}; // expected-error {{incompatible block pointer types initializing}}
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){}; // expected-error {{incompatible block pointer types initializing}}
14
blk1 a1 = ^void (
__attribute
((ns_consumed)) id arg1, id arg2){}; // expected-error {{incompatible block pointer types initializing}}
16
blk1 b2 = ^void (id arg1,
__attribute
((ns_consumed)) id arg2){}; // expected-error {{incompatible block pointer types initializing}
[
all
...]
attr-objc-gc.m
2
static id
__attribute
((objc_gc(weak))) a;
3
static id
__attribute
((objc_gc(strong))) b;
5
static id
__attribute
((objc_gc())) c; // expected-error{{'objc_gc' attribute requires a string}}
6
static id
__attribute
((objc_gc(123))) d; // expected-error{{'objc_gc' attribute requires a string}}
7
static id
__attribute
((objc_gc(foo, 456))) e; // expected-error{{'objc_gc' attribute takes one argument}}
8
static id
__attribute
((objc_gc(hello))) f; // expected-warning{{'objc_gc' attribute argument not supported: 'hello'}}
22
void test2(id
__attribute
((objc_gc(strong))) *strong,
23
id
__attribute
((objc_gc(weak))) *weak) {
attr-cleanup.m
10
NSString *s
__attribute
((cleanup(c1)));
/external/libxml2/
elfgcchack.h
69
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
((visibility("hidden")))
[
all
...]
/external/clang/test/Sema/
attr-cleanup.c
5
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
((cleanup(c4))) void* g
[
all
...]
attr-malloc.c
7
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
...]
attr-tls_model.c
7
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"}}
pragma-weak.c
5
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'}}
alias-redefinition.c
4
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}}
attr-regparm.c
3
__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}}
/toolchain/binutils/binutils-2.27/ld/testsuite/ld-cygwin/
testdll.c
2
__attribute
((dllimport)) int global_a;
/external/clang/test/CodeGen/
align-local.c
3
typedef struct
__attribute
((aligned(16))) {int x[4];} ff;
function
9
struct {int x[4];} b
__attribute
((aligned(16)));
2011-03-08-ZeroFieldUnionInitializer.c
4
struct { }
__attribute
((packed));
/external/clang/test/SemaObjCXX/
arc-nsconsumed-errors.mm
4
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 {{cannot initialize a variable of type '__strong blk'}}
8
blk b = ^void (id,
__attribute
((ns_consumed)) id){};
10
blk c = ^void (
__attribute
((ns_consumed)) id,
__attribute
((ns_consumed)) id){}; // expected-error {{cannot initialize a variable of type '__strong blk'}}
14
blk1 a1 = ^void (
__attribute
((ns_consumed)) id, id){}; // expected-error {{cannot initialize a variable of type '__strong blk1'}}
16
blk1 b2 = ^void (id,
__attribute
((ns_consumed)) id){}; // expected-error {{cannot initialize a variable of type '__strong blk1'}
[
all
...]
/external/clang/test/CodeGenCXX/
enum.cpp
4
enum A { a }
__attribute
((packed));
/external/clang/test/CodeGenOpenCL/
vector_literals_nested.cl
3
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)));
/external/clang/test/SemaOpenCL/
vector_conv_invalid.cl
3
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)));
vector_literals_const.cl
4
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)));
/external/clang/test/Analysis/
nonnull.m
73
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)));
102
void multipleAttributes_2(char *p, char *q)
__attribute
((nonnull(1)));
103
void multipleAttributes_2(char *p, char *q)
__attribute
((nonnull(2)));
120
void multipleAttributes_3(char *p, char *q)
__attribute
((nonnull(1)))
__attribute
((nonnull(1)));
133
void multipleAttributes_4(char *p, char *q, char *r)
__attribute
((nonnull(1)))
__attribute
((nonnull(3)));
152
void multipleAttributes_all_1(char *p, char *q)
__attribute
((nonnull(1))) __attribute((nonnull))
[
all
...]
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
copy_test.rs
29
float2
__attribute
((kernel)) copyFloat2(float2 i) {
33
float3
__attribute
((kernel)) copyFloat3(float3 i) {
37
float4
__attribute
((kernel)) copyFloat4(float4 i) {
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
copy_test.rs
29
float2
__attribute
((kernel)) copyFloat2(float2 i) {
33
float3
__attribute
((kernel)) copyFloat3(float3 i) {
37
float4
__attribute
((kernel)) copyFloat4(float4 i) {
Completed in 962 milliseconds
1
2
3
4
5
6
7
8
9
10