Searched refs:__attribute__ (Results 1 - 25 of 1441) sorted by relevance
1234567891011>>
/external/clang/test/Sema/ |
H A D | constructor-attribute.c | 3 int x __attribute__((constructor)); // expected-warning {{'constructor' attribute only applies to functions}} 4 int f() __attribute__((constructor)); 5 int f() __attribute__((constructor(1))); 6 int f() __attribute__((constructor(1,2))); // expected-error {{attribute takes no more than 1 argument}} 7 int f() __attribute__((constructor(1.0))); // expected-error {{'constructor' attribute requires parameter 1 to be an integer constant}} 9 int x __attribute__((destructor)); // expected-warning {{'destructor' attribute only applies to functions}} 10 int f() __attribute__((destructor)); 11 int f() __attribute__((destructor(1))); 12 int f() __attribute__((destructor(1,2))); // expected-error {{attribute takes no more than 1 argument}} 13 int f() __attribute__((destructo [all...] |
H A D | 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;};
|
H A D | attr-section.c | 3 int x __attribute__((section( 8 int y __attribute__((section( 13 __attribute__((section("NEAR,x"))) int n1; // expected-error {{'section' attribute is not valid on local variables}} 14 __attribute__((section("NEAR,x"))) static int n2; // ok. 18 void __attribute__((section("foo,zed"))) test2(void); // expected-note {{previous attribute is here}} 19 void __attribute__((section("bar,zed"))) test2(void) {} // expected-warning {{section does not match previous declaration}}
|
H A D | attr-declspec-ignored.c | 3 __attribute__((visibility("hidden"))) __attribute__((aligned)) struct A; // expected-warning{{attribute 'visibility' is ignored, place it after "struct" to apply attribute to type declaration}} \ 5 __attribute__((visibility("hidden"))) __attribute__((aligned)) union B; // expected-warning{{attribute 'visibility' is ignored, place it after "union" to apply attribute to type declaration}} \ 7 __attribute__((visibility("hidden"))) __attribute__((aligned)) enum C {C}; // expected-warning{{attribute 'visibility' is ignored, place it after "enum" to apply attribute to type declaration}} \ 10 __attribute__((visibility("hidden"))) __attribute__((aligned)) struct D {} d; 11 __attribute__((visibility("hidden"))) __attribute__((aligne [all...] |
H A D | attr-noinline.c | 3 int a __attribute__((noinline)); // expected-warning {{'noinline' attribute only applies to functions}} 5 void t1() __attribute__((noinline)); 7 void t2() __attribute__((noinline(2))); // expected-error {{attribute takes no arguments}}
|
H A D | attr-weak.c | 3 extern int g0 __attribute__((weak)); 4 extern int g1 __attribute__((weak_import)); 5 int g2 __attribute__((weak)); 6 int g3 __attribute__((weak_import)); // expected-warning {{'weak_import' attribute cannot be specified on a definition}} 7 int __attribute__((weak_import)) g4(void); 8 void __attribute__((weak_import)) g5(void) { 11 struct __attribute__((weak)) s0 {}; // expected-warning {{'weak' attribute only applies to variables and functions}} 12 struct __attribute__((weak_import)) s1 {}; // expected-warning {{'weak_import' attribute only applies to variables and functions}} 14 static int x __attribute__((weak)); // expected-error {{weak declaration cannot have internal linkage}} 18 extern int C __attribute__((weak_impor [all...] |
H A D | attr-naked.c | 3 int a __attribute__((naked)); // expected-warning {{'naked' attribute only applies to functions}} 5 __attribute__((naked)) int t0(void) { 9 void t1() __attribute__((naked)); 11 void t2() __attribute__((naked(2))); // expected-error {{attribute takes no arguments}}
|
H A D | attr-nodebug.c | 3 int a __attribute__((nodebug)); 6 int b __attribute__((nodebug)); // expected-warning {{'nodebug' only applies to variables with static storage duration and functions}} 9 void t1() __attribute__((nodebug)); 11 void t2() __attribute__((nodebug(2))); // expected-error {{attribute takes no arguments}}
|
H A D | block-return-2.c | 4 ^ (void) __attribute__((noreturn)) { }(); // expected-error {{block declared 'noreturn' should not return}}
|
H A D | mips16_attr_not_allowed.c | 3 void __attribute__((nomips16)) foo32(); // expected-warning {{unknown attribute 'nomips16' ignored}} 4 void __attribute__((mips16)) foo16(); // expected-warning {{unknown attribute 'mips16' ignored}}
|
H A D | 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__((visibilit [all...] |
/external/clang/test/CodeGen/ |
H A D | attr-used.c | 7 int g0 __attribute__((used)); 9 static void __attribute__((used)) f0(void) { 13 static int l0 __attribute__((used)) = 5225;
|
H A D | 2009-03-01-MallocNoAlias.c | 3 void * __attribute__ ((malloc)) foo (void) { return 0; }
|
H A D | attr-coldhot.c | 3 int test1() __attribute__((__cold__)) {
|
H A D | hidden-visibility.c | 4 int X __attribute__ ((__visibility__ ("hidden"))) = 123;
|
H A D | 2005-12-04-AttributeUsed.c | 4 int X __attribute__((used)); 7 __attribute__((used)) void foo() {}
|
H A D | 2008-03-03-CtorAttrType.c | 2 int __attribute__((constructor)) foo(void) { 5 void __attribute__((constructor)) bar(void) {}
|
H A D | mips16-attr.c | 2 void __attribute__((mips16)) foo (void) { 8 void __attribute__((nomips16)) nofoo (void) {
|
/external/clang/test/PCH/Inputs/ |
H A D | chain-ext_vector1.h | 3 typedef __attribute__((ext_vector_type(2))) float float2;
|
H A D | chain-ext_vector2.h | 3 typedef __attribute__((ext_vector_type(4))) float float4;
|
/external/clang/test/SemaCXX/ |
H A D | attr-declspec-ignored.cpp | 4 __attribute__((visibility("hidden"))) __attribute__((aligned)) class A; // expected-warning{{attribute 'visibility' is ignored, place it after "class" to apply attribute to type declaration}} \ 6 __attribute__((visibility("hidden"))) __attribute__((aligned)) struct B; // expected-warning{{attribute 'visibility' is ignored, place it after "struct" to apply attribute to type declaration}} \ 8 __attribute__((visibility("hidden"))) __attribute__((aligned)) union C; // expected-warning{{attribute 'visibility' is ignored, place it after "union" to apply attribute to type declaration}} \ 10 __attribute__((visibility("hidden"))) __attribute__((aligned)) enum D {D}; // expected-warning{{attribute 'visibility' is ignored, place it after "enum" to apply attribute to type declaration}} \ 15 __attribute__((visibility("hidden"))) __attribute__((aligne [all...] |
/external/clang/test/SemaObjC/ |
H A D | nonnull.h | 2 #define NONNULL_ATTR __attribute__((nonnull))
|
/external/compiler-rt/SDKs/linux/usr/include/ |
H A D | stdlib.h | 24 void abort(void) __attribute__((__nothrow__)) __attribute__((__noreturn__)); 25 int atoi(const char *) __attribute__((__nothrow__)); 26 void free(void *) __attribute__((__nothrow__)); 27 char *getenv(const char *) __attribute__((__nothrow__)) 28 __attribute__((__nonnull__(1))); 29 __attribute__((__warn_unused_result__)); 30 void *malloc(size_t) __attribute__((__nothrow__)) __attribute((__malloc__)) 31 __attribute__((__warn_unused_result__));
|
/external/clang/test/CodeGenCXX/ |
H A D | attr-used.cpp | 3 // <rdar://problem/8684363>: clang++ not respecting __attribute__((used)) on destructors 6 __attribute__((used)) X0() {} 8 __attribute__((used)) ~X0() {}
|
/external/clang/test/PCH/ |
H A D | ext_vector.h | 3 typedef __attribute__((ext_vector_type(2))) float float2; 4 typedef __attribute__((ext_vector_type(4))) float float4;
|
Completed in 413 milliseconds
1234567891011>>