OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:__attribute__
(Results
1 - 25
of
1904
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/external/clang/test/Sema/
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_import)); // expected-warning {{an already-declared variable is made a weak_import declarati (…)
[
all
...]
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__
((destructor(1.0))); // expected-error {{'destructor' attribute requires parameter 1 to be an integ (…)
[
all
...]
attr-nodebug.c
3
int a
__attribute__
((nodebug)); // expected-warning {{'nodebug' attribute only applies to functions}}
5
void t1()
__attribute__
((nodebug));
7
void t2()
__attribute__
((nodebug(2))); // expected-error {{attribute takes no arguments}}
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}}
annotate.c
3
void
__attribute__
((annotate("foo"))) foo(float *a) {
4
__attribute__
((annotate("bar"))) int x;
5
__attribute__
((annotate(1))) int y; // expected-error {{argument to annotate attribute was not a string literal}}
6
__attribute__
((annotate("bar", 1))) int z; // expected-error {{attribute takes one argument}}
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}}
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.
block-return-2.c
4
^ (void)
__attribute__
((noreturn)) { }(); // expected-error {{block declared 'noreturn' should not return}}
attr-unknown.c
3
int x
__attribute__
((foobar)); // expected-warning {{unknown attribute 'foobar' ignored}}
4
void z()
__attribute__
((bogusattr)); // expected-warning {{unknown attribute 'bogusattr' ignored}}
/external/llvm/test/FrontendC/
2009-03-09-WeakDeclarations-1.c
11
extern int ext_weak_import
__attribute__
((__weak_import__));
14
int decl_weak_import
__attribute__
((__weak_import__));
15
int decl_initialized_weak_import
__attribute__
((__weak_import__)) = 13;
18
extern int ext_f(void)
__attribute__
((__weak_import__));
21
int def_f(void)
__attribute__
((__weak_import__));
22
int
__attribute__
((__weak_import__)) decl_f(void) {return 0;};
2009-03-01-MallocNoAlias.c
3
void *
__attribute__
((malloc)) foo (void) { return 0; }
hidden-visibility.c
3
int X
__attribute__
((__visibility__ ("hidden"))) = 123;
2005-12-04-AttributeUsed.c
4
int X
__attribute__
((used));
7
__attribute__
((used)) void foo() {}
/external/clang/test/CodeGen/
attr-used.c
7
int g0
__attribute__
((used));
9
static void
__attribute__
((used)) f0(void) {
13
static int l0
__attribute__
((used)) = 5225;
/external/clang/test/SemaCXX/
attr-weakref.cpp
5
static int a1()
__attribute__
((weakref ("foo")));
6
static int a2()
__attribute__
((weakref, alias ("foo")));
8
static int a3
__attribute__
((weakref ("foo")));
9
static int a4
__attribute__
((weakref, alias ("foo")));
12
static int a5
__attribute__
((alias ("foo"), weakref));
15
static int a6
__attribute__
((weakref)); //expected-error {{weakref declaration of 'a6' must also have an alias attribute}}
19
static int a
__attribute__
((weakref ("v2"))); // expected-error {{declaration of 'a' must be in a global context}}
24
static int a
__attribute__
((weakref ("v2"))); // expected-error {{declaration of 'a' must be in a global context}}
25
static int b()
__attribute__
((weakref ("f3"))); // expected-error {{declaration of 'b' must be in a global context}}
27
int a7()
__attribute__
((weakref ("f1"))); // expected-error {{weakref declaration must have internal linkage}
[
all
...]
attr-weak.cpp
3
static int test0
__attribute__
((weak)); // expected-error {{weak declaration cannot have internal linkage}}
4
static void test1()
__attribute__
((weak)); // expected-error {{weak declaration cannot have internal linkage}}
6
namespace test2
__attribute__
((weak)) { // expected-warning {{'weak' attribute only applies to variables and functions}}
10
int test3
__attribute__
((weak)); // expected-error {{weak declaration cannot have internal linkage}}
11
void test4()
__attribute__
((weak)); // expected-error {{weak declaration cannot have internal linkage}}
15
static void test5()
__attribute__
((weak)); // no error
20
static void test6()
__attribute__
((weak)); // expected-error {{weak declaration cannot have internal linkage}}
25
void test7()
__attribute__
((weak)) {}
/bionic/linker/
rt.c
33
void
__attribute__
((noinline)) rtld_db_dlactivity(void)
/external/clang/test/PCH/Inputs/
chain-ext_vector1.h
3
typedef
__attribute__
((ext_vector_type(2))) float float2;
chain-ext_vector2.h
3
typedef
__attribute__
((ext_vector_type(4))) float float4;
/external/clang/test/SemaObjC/
nonnull.h
2
#define NONNULL_ATTR
__attribute__
((nonnull))
/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/
functexcept.h
43
__throw_bad_exception(void)
__attribute__
((__noreturn__));
47
__throw_bad_alloc(void)
__attribute__
((__noreturn__));
51
__throw_bad_cast(void)
__attribute__
((__noreturn__));
54
__throw_bad_typeid(void)
__attribute__
((__noreturn__));
58
__throw_logic_error(const char*)
__attribute__
((__noreturn__));
61
__throw_domain_error(const char*)
__attribute__
((__noreturn__));
64
__throw_invalid_argument(const char*)
__attribute__
((__noreturn__));
67
__throw_length_error(const char*)
__attribute__
((__noreturn__));
70
__throw_out_of_range(const char*)
__attribute__
((__noreturn__));
73
__throw_runtime_error(const char*)
__attribute__
((__noreturn__))
[
all
...]
/prebuilt/ndk/android-ndk-r5/sources/cxx-stl/gnu-libstdc++/include/bits/
functexcept.h
43
__throw_bad_exception(void)
__attribute__
((__noreturn__));
47
__throw_bad_alloc(void)
__attribute__
((__noreturn__));
51
__throw_bad_cast(void)
__attribute__
((__noreturn__));
54
__throw_bad_typeid(void)
__attribute__
((__noreturn__));
58
__throw_logic_error(const char*)
__attribute__
((__noreturn__));
61
__throw_domain_error(const char*)
__attribute__
((__noreturn__));
64
__throw_invalid_argument(const char*)
__attribute__
((__noreturn__));
67
__throw_length_error(const char*)
__attribute__
((__noreturn__));
70
__throw_out_of_range(const char*)
__attribute__
((__noreturn__));
73
__throw_runtime_error(const char*)
__attribute__
((__noreturn__))
[
all
...]
/prebuilt/ndk/android-ndk-r6/sources/cxx-stl/gnu-libstdc++/include/bits/
functexcept.h
43
__throw_bad_exception(void)
__attribute__
((__noreturn__));
47
__throw_bad_alloc(void)
__attribute__
((__noreturn__));
51
__throw_bad_cast(void)
__attribute__
((__noreturn__));
54
__throw_bad_typeid(void)
__attribute__
((__noreturn__));
58
__throw_logic_error(const char*)
__attribute__
((__noreturn__));
61
__throw_domain_error(const char*)
__attribute__
((__noreturn__));
64
__throw_invalid_argument(const char*)
__attribute__
((__noreturn__));
67
__throw_length_error(const char*)
__attribute__
((__noreturn__));
70
__throw_out_of_range(const char*)
__attribute__
((__noreturn__));
73
__throw_runtime_error(const char*)
__attribute__
((__noreturn__))
[
all
...]
/external/clang/test/CodeGenCXX/
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/
ext_vector.h
3
typedef
__attribute__
((ext_vector_type(2))) float float2;
4
typedef
__attribute__
((ext_vector_type(4))) float float4;
Completed in 504 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>