Searched refs:__attribute__ (Results 1 - 25 of 1441) sorted by relevance

1234567891011>>

/external/clang/test/Sema/
H A Dconstructor-attribute.c3 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 D2009-03-09-WeakDeclarations-1.c5 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 Dattr-section.c3 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 Dattr-declspec-ignored.c3 __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 Dattr-noinline.c3 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 Dattr-weak.c3 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 Dattr-naked.c3 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 Dattr-nodebug.c3 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 Dblock-return-2.c4 ^ (void) __attribute__((noreturn)) { }(); // expected-error {{block declared 'noreturn' should not return}}
H A Dmips16_attr_not_allowed.c3 void __attribute__((nomips16)) foo32(); // expected-warning {{unknown attribute 'nomips16' ignored}}
4 void __attribute__((mips16)) foo16(); // expected-warning {{unknown attribute 'mips16' ignored}}
H A 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__((visibilit
[all...]
/external/clang/test/CodeGen/
H A Dattr-used.c7 int g0 __attribute__((used));
9 static void __attribute__((used)) f0(void) {
13 static int l0 __attribute__((used)) = 5225;
H A D2009-03-01-MallocNoAlias.c3 void * __attribute__ ((malloc)) foo (void) { return 0; }
H A Dattr-coldhot.c3 int test1() __attribute__((__cold__)) {
H A Dhidden-visibility.c4 int X __attribute__ ((__visibility__ ("hidden"))) = 123;
H A D2005-12-04-AttributeUsed.c4 int X __attribute__((used));
7 __attribute__((used)) void foo() {}
H A D2008-03-03-CtorAttrType.c2 int __attribute__((constructor)) foo(void) {
5 void __attribute__((constructor)) bar(void) {}
H A Dmips16-attr.c2 void __attribute__((mips16)) foo (void) {
8 void __attribute__((nomips16)) nofoo (void) {
/external/clang/test/PCH/Inputs/
H A Dchain-ext_vector1.h3 typedef __attribute__((ext_vector_type(2))) float float2;
H A Dchain-ext_vector2.h3 typedef __attribute__((ext_vector_type(4))) float float4;
/external/clang/test/SemaCXX/
H A Dattr-declspec-ignored.cpp4 __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 Dnonnull.h2 #define NONNULL_ATTR __attribute__((nonnull))
/external/compiler-rt/SDKs/linux/usr/include/
H A Dstdlib.h24 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 Dattr-used.cpp3 // <rdar://problem/8684363>: clang++ not respecting __attribute__((used)) on destructors
6 __attribute__((used)) X0() {}
8 __attribute__((used)) ~X0() {}
/external/clang/test/PCH/
H A Dext_vector.h3 typedef __attribute__((ext_vector_type(2))) float float2;
4 typedef __attribute__((ext_vector_type(4))) float float4;

Completed in 413 milliseconds

1234567891011>>