Home
last modified time | relevance | path

Searched defs:__attribute (Results 1 – 25 of 70) sorted by relevance

123

/external/llvm-project/clang/test/SemaObjC/
Dattr-objc-gc.m2 static id __attribute((objc_gc(weak))) a; function
3 static id __attribute((objc_gc(strong))) b; function
5 static id __attribute((objc_gc())) c; // expected-error{{'objc_gc' attribute requires a string}} function
6 static id __attribute((objc_gc(123))) d; // expected-error{{'objc_gc' attribute requires a string}} function
7 static id __attribute((objc_gc(foo, 456))) e; // expected-error{{'objc_gc' attribute takes one argu… function
8 static id __attribute((objc_gc(hello))) f; // expected-warning{{'objc_gc' attribute argument not su… function
Dattr-malloc.m4 - (id) test1 __attribute((malloc)); // expected-warning {{attribute only applies to functions}} method
5 - (int) test2 __attribute((malloc)); // expected-warning {{attribute only applies to functions}} method
8 id bar(void) __attribute((malloc)); // no-warning function
11 bptr baz(void) __attribute((malloc)); // no-warning function
13 __attribute((malloc)) id (*f)(); // expected-warning {{attribute only applies to functions}} function
14 __attribute((malloc)) bptr (*g)(); // expected-warning {{attribute only applies to functions}} function
15 __attribute((malloc)) void *(^h)(); // expected-warning {{attribute only applies to functions}} function
Dsuper-dealloc-attribute.m16 - MyDealloc __attribute((objc_requires_super)); method
17 - (void)XXX __attribute((objc_requires_super)); method
18 - (void) dealloc __attribute((objc_requires_super)); // expected-warning {{'objc_requires_super' at… method
20 - (void) AnnotMyDeallocMeth __attribute((objc_requires_super)); method
28 - (void) MyDeallocMeth __attribute((objc_requires_super)); // 'Baz' author has annotated method method
30 - (void) AnnotMeth __attribute((objc_requires_super)); // 'Baz' author has annotated method method
61 - (void) AnnotMethCAT __attribute((objc_requires_super)); method in CAT
Dprotocol-attribute.m3 __attribute ((unavailable)) function
41 __attribute ((unavailable)) __attribute ((deprecated)) @protocol XProto; // expected-note{{marked u… function
Ddefault-synthesize-3.m5 __attribute ((objc_requires_property_definitions)) function
15 __attribute ((objc_requires_property_definitions)) // redundant, just for testing function
36 __attribute ((objc_requires_property_definitions)) // expected-error {{'objc_requires_property_defi… function
40 __attribute ((objc_requires_property_definitions)) // expected-error {{'objc_requires_property_defi… function
157 __attribute ((objc_requires_property_definitions(1))) // expected-error {{'objc_requires_property_d… function
/external/clang/test/SemaObjC/
Dattr-objc-gc.m2 static id __attribute((objc_gc(weak))) a; function
3 static id __attribute((objc_gc(strong))) b; function
5 static id __attribute((objc_gc())) c; // expected-error{{'objc_gc' attribute requires a string}} function
6 static id __attribute((objc_gc(123))) d; // expected-error{{'objc_gc' attribute requires a string}} function
7 static id __attribute((objc_gc(foo, 456))) e; // expected-error{{'objc_gc' attribute takes one argu… function
8 static id __attribute((objc_gc(hello))) f; // expected-warning{{'objc_gc' attribute argument not su… function
Dattr-malloc.m4 - (id) test1 __attribute((malloc)); // expected-warning {{attribute only applies to functions}} method
5 - (int) test2 __attribute((malloc)); // expected-warning {{attribute only applies to functions}} method
8 id bar(void) __attribute((malloc)); // no-warning function
11 bptr baz(void) __attribute((malloc)); // no-warning function
13 __attribute((malloc)) id (*f)(); // expected-warning {{attribute only applies to functions}} function
14 __attribute((malloc)) bptr (*g)(); // expected-warning {{attribute only applies to functions}} function
15 __attribute((malloc)) void *(^h)(); // expected-warning {{attribute only applies to functions}} function
Dsuper-dealloc-attribute.m16 - MyDealloc __attribute((objc_requires_super)); method
17 - (void)XXX __attribute((objc_requires_super)); method
18 - (void) dealloc __attribute((objc_requires_super)); // expected-warning {{'objc_requires_super' at… method
20 - (void) AnnotMyDeallocMeth __attribute((objc_requires_super)); method
28 - (void) MyDeallocMeth __attribute((objc_requires_super)); // 'Baz' author has annotated method method
30 - (void) AnnotMeth __attribute((objc_requires_super)); // 'Baz' author has annotated method method
61 - (void) AnnotMethCAT __attribute((objc_requires_super)); method in CAT
Dprotocol-attribute.m3 __attribute ((unavailable)) function
41 __attribute ((unavailable)) __attribute ((deprecated)) @protocol XProto; // expected-note{{marked u… function
Ddefault-synthesize-3.m5 __attribute ((objc_requires_property_definitions)) function
15 __attribute ((objc_requires_property_definitions)) // redundant, just for testing function
36 __attribute ((objc_requires_property_definitions)) function
40 __attribute ((objc_requires_property_definitions)) // expected-error {{'objc_requires_property_defi… function
157 __attribute ((objc_requires_property_definitions(1))) // expected-error {{'objc_requires_property_d… function
/external/llvm-project/clang/test/Sema/
Dattr-mode.c18 typedef int i16_1 __attribute((mode(HI))); typedef
20 typedef int i16_2 __attribute((__mode__(__HI__))); typedef
23 typedef float f64 __attribute((mode(DF))); typedef
26 typedef int invalid_1 __attribute((mode)); // expected-error{{'mode' attribute takes one argument}} typedef
27 typedef int invalid_2 __attribute((mode())); // expected-error{{'mode' attribute takes one argument… typedef
28 typedef int invalid_3 __attribute((mode(II))); // expected-error{{unknown machine mode}} typedef
29 typedef struct {int i,j,k;} invalid_4 __attribute((mode(SI))); // expected-error{{mode attribute on… typedef
30 typedef float invalid_5 __attribute((mode(SI))); // expected-error{{type of machine mode does not m… typedef
33 typedef unsigned unwind_word __attribute((mode(unwind_word))); typedef
40 typedef _Complex double c32 __attribute((mode(SC))); typedef
[all …]
Daltivec-init.c3 typedef int v4 __attribute((vector_size(16))); typedef
4 typedef short v8 __attribute((vector_size(16))); typedef
/external/clang/test/Sema/
Dattr-mode.c10 typedef int i16_1 __attribute((mode(HI))); typedef
12 typedef int i16_2 __attribute((__mode__(__HI__))); typedef
15 typedef float f64 __attribute((mode(DF))); typedef
18 typedef int invalid_1 __attribute((mode)); // expected-error{{'mode' attribute takes one argument}} typedef
19 typedef int invalid_2 __attribute((mode())); // expected-error{{'mode' attribute takes one argument… typedef
20 typedef int invalid_3 __attribute((mode(II))); // expected-error{{unknown machine mode}} typedef
21 typedef struct {int i,j,k;} invalid_4 __attribute((mode(SI))); // expected-error{{mode attribute on… typedef
22 typedef float invalid_5 __attribute((mode(SI))); // expected-error{{type of machine mode does not m… typedef
25 typedef unsigned unwind_word __attribute((mode(unwind_word))); typedef
32 typedef _Complex double c32 __attribute((mode(SC))); typedef
[all …]
Daltivec-init.c3 typedef int v4 __attribute((vector_size(16))); typedef
4 typedef short v8 __attribute((vector_size(16))); typedef
/external/clang/test/Analysis/
Dnonnull.m80 void multipleAttributes_1(char *p, char *q) __attribute((nonnull(1))) __attribute((nonnull(2))); function
102 void multipleAttributes_2(char *p, char *q) __attribute((nonnull(1))); function
103 void multipleAttributes_2(char *p, char *q) __attribute((nonnull(2))); function
120 void multipleAttributes_3(char *p, char *q) __attribute((nonnull(1))) __attribute((nonnull(1))); function
133 void multipleAttributes_4(char *p, char *q, char *r) __attribute((nonnull(1))) __attribute((nonnull… function
152 void multipleAttributes_all_1(char *p, char *q) __attribute((nonnull(1))) __attribute((nonnull)); function
165 void multipleAttributes_all_2(char *p, char *q) __attribute((nonnull)) __attribute((nonnull(2))); function
/external/llvm-project/clang/test/Analysis/
Dnonnull.m80 void multipleAttributes_1(char *p, char *q) __attribute((nonnull(1))) __attribute((nonnull(2))); function
102 void multipleAttributes_2(char *p, char *q) __attribute((nonnull(1))); function
103 void multipleAttributes_2(char *p, char *q) __attribute((nonnull(2))); function
120 void multipleAttributes_3(char *p, char *q) __attribute((nonnull(1))) __attribute((nonnull(1))); function
133 void multipleAttributes_4(char *p, char *q, char *r) __attribute((nonnull(1))) __attribute((nonnull… function
152 void multipleAttributes_all_1(char *p, char *q) __attribute((nonnull(1))) __attribute((nonnull)); function
165 void multipleAttributes_all_2(char *p, char *q) __attribute((nonnull)) __attribute((nonnull(2))); function
/external/llvm-project/clang/test/CodeGen/
Dalign-local.c3 typedef struct __attribute((aligned(16))) {int x[4];} ff; argument
/external/clang/test/CodeGen/
Dalign-local.c3 typedef struct __attribute((aligned(16))) {int x[4];} ff; struct
/external/llvm-project/compiler-rt/test/msan/
Dlibatomic.c12 typedef struct __attribute((packed)) { struct
13 uint8_t val[3];
Dlibatomic_load_exceptions.cpp10 typedef struct __attribute((packed)) { struct
11 uint8_t val[3];
/external/libcap-ng/libcap-ng-0.7/bindings/python/
Dcapng_swig.i39 #define __attribute(X) /*nothing*/ macro
/external/clang/test/CodeGenObjC/
Darc-weak.m3 __attribute((objc_root_class)) @interface A @end function
/external/llvm-project/clang/test/CodeGenObjC/
Darc-weak.m3 __attribute((objc_root_class)) @interface A @end function
/external/llvm-project/clang/test/CodeGenObjCXX/
Darc-weak.mm3 __attribute((objc_root_class)) @interface A @end function
/external/clang/test/CodeGenObjCXX/
Darc-weak.mm3 __attribute((objc_root_class)) @interface A @end function

123