/external/clang/test/Parser/ |
D | objcbridge-related-attribute.m | 4 typedef struct __attribute__((objc_bridge_related(NSColor,colorWithCGColor:,CGColor))) CGColor *CGC… struct 5 typedef struct __attribute__((objc_bridge_related(NSColor,,CGColor))) CGColor *CGColorRef1Ok; struct 6 typedef struct __attribute__((objc_bridge_related(NSColor,,))) CGColor *CGColorRef2Ok; struct 7 typedef struct __attribute__((objc_bridge_related(NSColor,colorWithCGColor:,))) CGColor *CGColorRef… struct 9 typedef struct __attribute__((objc_bridge_related(,colorWithCGColor:,CGColor))) CGColor *CGColorRef… struct 10 typedef struct __attribute__((objc_bridge_related(NSColor,colorWithCGColor,CGColor))) CGColor *CGCo… struct 11 typedef struct __attribute__((objc_bridge_related(NSColor,colorWithCGColor::,CGColor))) CGColor *CG… struct 12 typedef struct __attribute__((objc_bridge_related(12,colorWithCGColor:,CGColor))) CGColor *CGColorR… struct 13 typedef struct __attribute__((objc_bridge_related(NSColor,+:,CGColor))) CGColor *CGColorRef5NotOk; … struct 14 typedef struct __attribute__((objc_bridge_related(NSColor,colorWithCGColor:,+))) CGColor *CGColorRe… struct
|
/external/clang/test/SemaObjC/ |
D | attr-availability.m | 4 - (void)proto_method __attribute__((availability(macosx,introduced=10.1,deprecated=10.2))); // expe… method 8 - (void)method __attribute__((availability(macosx,introduced=10.1,deprecated=10.2))); // expected-n… method 10 - (void)overridden __attribute__((availability(macosx,introduced=10.3))); // expected-note{{overrid… method 11 - (void)overridden2 __attribute__((availability(macosx,introduced=10.3))); method 12 - (void)overridden3 __attribute__((availability(macosx,deprecated=10.3))); method 13 - (void)overridden4 __attribute__((availability(macosx,deprecated=10.3))); // expected-note{{overri… method 14 - (void)overridden5 __attribute__((availability(macosx,unavailable))); method 15 - (void)overridden6 __attribute__((availability(macosx,introduced=10.3))); // expected-note{{overri… method 21 - (void)overridden __attribute__((availability(macosx,introduced=10.4))); // expected-warning{{over… method 22 - (void)overridden2 __attribute__((availability(macosx,introduced=10.2))); method [all …]
|
D | special-dep-unavail-warning.m | 6 - (void) unavailMeth __attribute__((unavailable)); // expected-note {{has been explicitly marked un… method 7 - (void) depInA1 __attribute__((deprecated)); // expected-note {{'depInA1' has been explicitly mark… method 9 - (void) depInA2 __attribute__((deprecated)); // expected-note {{'depInA2' has been explicitly mark… method 10 - (void) unavailMeth2 __attribute__((unavailable)); // expected-note {{has been explicitly marked u… method 12 - (void) depunavailInA1 __attribute__((deprecated)) __attribute__((unavailable)); // expected-note … method 13 - (void)FuzzyMeth __attribute__((deprecated)); // expected-note {{'FuzzyMeth' has been explicitly m… method 14 - (void)FuzzyMeth1 __attribute__((unavailable)); method 18 - (void) unavailMeth1 __attribute__((unavailable)); // expected-note {{has been explicitly marked u… method 19 - (void) depInA __attribute__((deprecated)); // expected-note {{'depInA' has been explicitly marked… method 20 - (void) depInA2 __attribute__((deprecated)); method [all …]
|
D | format-arg-attribute.m | 5 extern NSString *fa2 (const NSString *) __attribute__((format_arg(1))); function 6 extern NSString *fa3 (NSString *) __attribute__((format_arg(1))); function 8 extern void fc1 (const NSString *) __attribute__((format_arg)); // expected-error {{'format_arg' a… function 9 extern void fc2 (const NSString *) __attribute__((format_arg())); // expected-error {{'format_arg' … function 10 extern void fc3 (const NSString *) __attribute__((format_arg(1, 2))); // expected-error {{'format_a… function 12 struct s1 { int i; } __attribute__((format_arg(1))); // expected-warning {{'format_arg' attribute … function 13 union u1 { int i; } __attribute__((format_arg(1))); // expected-warning {{'format_arg' attribute o… function 14 enum e1 { E1V0 } __attribute__((format_arg(1))); // expected-warning {{'format_arg' attribute only … function 16 extern NSString *ff3 (const NSString *) __attribute__((format_arg(3-2))); function 17 extern NSString *ff4 (const NSString *) __attribute__((format_arg(foo))); // expected-error {{use o… function [all …]
|
D | nonnull.m | 10 int f2(int *x) __attribute__ ((nonnull (1))); function 11 int f3(int *x) __attribute__ ((nonnull (0))); // expected-error {{'nonnull' attribute parameter 1 i… function 12 int f4(int *x, int *y) __attribute__ ((nonnull (1,2))); function 13 int f5(int *x, int *y) __attribute__ ((nonnull (2,1))); function 14 int f6(NSObject *x) __attribute__ ((nonnull (1))); // no-warning function 15 int f7(NSObject *x) __attribute__ ((nonnull)); // no-warning function 18 extern void func1 (void (^block1)(), void (^block2)(), int) __attribute__((nonnull)); function 21 __attribute__((nonnull(1,3))); function 23 extern void func4 (void (^block1)(), void (^block2)()) __attribute__((nonnull(1))) function 24 __attribute__((nonnull(2))); function [all …]
|
D | objcbridgemutable-attribute.m | 4 typedef struct __attribute__((objc_bridge_mutable(NSMutableDictionary))) __CFDictionary * CFMutable… struct 6 typedef struct __attribute__((objc_bridge_mutable(12))) __CFDictionaryB1 * CFMutableDictionaryB1Ref… struct 8 typedef struct __attribute__((objc_bridge_mutable(P))) __CFDictionaryB2 * CFMutableDictionaryB2Ref;… struct 10 typedef struct __attribute__((objc_bridge_mutable(NSMutableDictionary, Unknown))) __CFDictionaryB3 … struct 12 typedef struct __attribute__((objc_bridge_mutable)) __CFDictionaryB4 * CFMutableDictionaryB4Ref; /… struct
|
D | ns_returns_retained_block_return.m | 10 BT foo() __attribute__((ns_returns_retained)); function 13 BT foo() __attribute__((ns_returns_retained)); category 14 - (BT) Meth __attribute__((ns_returns_retained)); method in ns_returns_retained 15 + (BT) ClsMeth __attribute__((ns_returns_retained)); class in ns_returns_retained 19 BT foo() __attribute__((ns_returns_retained)) {return ^{}; } category
|
D | no-warning-unavail-unimp.m | 7 @property (getter=getVal) int val __attribute__((unavailable)); property 8 @property (getter=getVal) int val2 __attribute__((availability(macosx,unavailable))); property 9 - Method __attribute__((unavailable)); method 10 + CMethod __attribute__((unavailable)); class
|
D | builtin_objc_msgSend.m | 12 extern __attribute__((visibility("default"))) id objc_msgSendSuper(struct objc_super *super, SEL op… function 13 __attribute__((availability(macosx,introduced=10.0))); function 15 extern __attribute__((visibility("default"))) void objc_msgSendSuper_stret(struct objc_super *super… function 16 __attribute__((availability(macosx,introduced=10.0))); function 18 extern __attribute__((visibility("default"))) void objc_msgSend_stret(id self, SEL op, ...) function 19 __attribute__((availability(macosx,introduced=10.0))); function
|
D | property-ns-returns-not-retained-attr.m | 5 @property (nonatomic, retain) id newName __attribute__((ns_returns_not_retained)) ; property 7 @property (nonatomic, retain) id newName1 __attribute__((ns_returns_not_retained)) ; property 8 - (id) newName1 __attribute__((ns_returns_not_retained)); method 10 @property (nonatomic, retain) id newName2 __attribute__((ns_returns_not_retained)); // expected-not… property
|
D | method-warn-unused-attribute.m | 4 - (id) foo __attribute__((warn_unused_result)); method 5 - (void) garf __attribute__((warn_unused_result)); // expected-warning {{attribute 'warn_unused_res… method 6 - (int) fee __attribute__((warn_unused_result)); method 7 + (int) c __attribute__((warn_unused_result)); class
|
D | objcbridge-attribute.m | 4 typedef struct __attribute__ ((objc_bridge(NSError))) __CFErrorRef * CFErrorRef; // expected-note 3… struct 6 typedef struct __attribute__ ((objc_bridge(MyError))) __CFMyErrorRef * CFMyErrorRef; // expected-no… struct 8 typedef struct __attribute__((objc_bridge(12))) __CFMyColor *CFMyColorRef; // expected-error {{par… struct 10 typedef struct __attribute__ ((objc_bridge)) __CFArray *CFArrayRef; // expected-error {{'objc_bridg… struct 16 typedef struct __attribute__((objc_bridge(NSLocale, NSError))) __CFLocale *CFLocaleRef;// expected-… struct 20 typedef struct __attribute__((objc_bridge(NSDictionary))) __CFDictionary * CFDictionaryRef; // expe… struct 40 typedef struct __attribute__((objc_bridge(NSTesting))) __CFError *CFTestingRef; // expected-note {{… struct 108 typedef struct __attribute__ ((objc_bridge(MyPersonalError))) __CFMyPersonalErrorRef * CFMyPersonal… struct 130 CFDictionaryRef bar() __attribute__((cf_returns_not_retained)); function
|
D | objcbridge-attribute-arc.m | 4 typedef struct __attribute__ ((objc_bridge(NSError))) __CFErrorRef * CFErrorRef; // expected-note 5… struct 6 typedef struct __attribute__ ((objc_bridge(MyError))) __CFMyErrorRef * CFMyErrorRef; // expected-no… struct 8 typedef struct __attribute__((objc_bridge(12))) __CFMyColor *CFMyColorRef; // expected-error {{par… struct 10 typedef struct __attribute__ ((objc_bridge)) __CFArray *CFArrayRef; // expected-error {{'objc_bridg… struct 16 typedef struct __attribute__((objc_bridge(NSLocale, NSError))) __CFLocale *CFLocaleRef;// expected-… struct 20 typedef struct __attribute__((objc_bridge(NSDictionary))) __CFDictionary * CFDictionaryRef; struct 40 typedef struct __attribute__((objc_bridge(NSTesting))) __CFError *CFTestingRef; // expected-note {{… struct 169 typedef struct __attribute__ ((objc_bridge(MyPersonalError))) __CFMyPersonalErrorRef * CFMyPersonal… struct
|
D | method-attributes.m | 6 -t1 __attribute__((noreturn)); method 8 -(void) m0 __attribute__((noreturn)); method 9 -(void) m1 __attribute__((unused)); method 10 -(void) m2 __attribute__((stdcall)); method 11 -(void) m3 __attribute__((optnone)); method 35 - (void) dep __attribute__((deprecated)) { } // OK private methodn method 65 -(id)method __attribute__((deprecated)); method 67 -(id)method2 __attribute__((aligned(16))); method 73 -(id)method __attribute__((aligned(16))) __attribute__((aligned(16))) __attribute__((deprecated)) { method 76 -(id)method1 __attribute__((aligned(16))) { method [all …]
|
D | attr-deprecated.m | 5 …int X __attribute__((deprecated)); // expected-note 2 {{'X' has been explicitly marked deprecated … field 7 + (void)F __attribute__((deprecated)); // expected-note 2 {{'F' has been explicitly marked deprecat… class 8 - (void)f __attribute__((deprecated)); // expected-note 4 {{'f' has been explicitly marked deprecat… method 13 { 46 - (void)p __attribute__((deprecated)); // expected-note {{'p' has been explicitly marked deprecated… method 75 @property (assign, setter = MySetter:) int FooBar __attribute__ ((deprecated)); // expected-note 2 … property 111 @property int test2 __attribute__((deprecated)); // expected-note 2 {{property 'test2' is declared … property 123 __attribute__((deprecated)) function 161 __attribute__((deprecated)) function 165 __attribute__((deprecated)) function
|
D | attr-objc-exception.m | 3 __attribute__((__objc_exception__)) function 11 __attribute__((__objc_exception__)) // expected-error {{'__objc_exception__' attribute only applies… function 14 __attribute__((__objc_exception__)) // expected-error {{'__objc_exception__' attribute only applies… function
|
D | arc-unavailable-for-weakref.m | 4 __attribute__((objc_arc_weak_reference_unavailable)) function 23 __attribute__((objc_arc_weak_reference_unavailable)) function 52 __attribute__((objc_arc_weak_reference_unavailable)) function 90 __attribute__((objc_arc_weak_reference_unavailable(1))) // expected-error {{'objc_arc_weak_referenc… function 94 int I4 __attribute__((objc_arc_weak_reference_unavailable)); // expected-error {{'objc_arc_weak_ref… function
|
/external/clang/test/CodeGenObjC/ |
D | deadcode_strip_used_var.m | 7 __attribute__((used)) static int XXXXXX __attribute__ ((section ("__DATA,__Xinterpose"))) ; function 8 __attribute__((used)) static int YYYY __attribute__ ((section ("__DATA,__Xinterpose"))) ; function
|
D | attr-exception.m | 4 __attribute__((objc_root_class)) function 10 __attribute__((objc_exception)) function 19 __attribute__((objc_exception)) function 20 __attribute__((visibility("default"))) function
|
D | objc2-weak-import-attribute.m | 3 __attribute__((weak_import)) @interface WeakRootClass @end function 5 __attribute__((weak_import)) @interface WeakClass : WeakRootClass function 15 __attribute__((weak_import)) function 22 __attribute__((weak_import)) function 38 __attribute__((weak_import)) @interface Root @end function
|
/external/clang/test/SemaObjCXX/ |
D | objcbridge-attribute-arc.mm | 4 typedef struct __attribute__ ((objc_bridge(NSError))) __CFErrorRef * CFErrorRef; // expected-note 5… struct 6 typedef struct __attribute__ ((objc_bridge(MyError))) __CFMyErrorRef * CFMyErrorRef; // expected-no… struct 8 typedef struct __attribute__((objc_bridge(12))) __CFMyColor *CFMyColorRef; // expected-error {{par… struct 10 typedef struct __attribute__ ((objc_bridge)) __CFArray *CFArrayRef; // expected-error {{'objc_bridg… struct 12 typedef struct __attribute__((objc_bridge(NSLocale, NSError))) __CFLocale *CFLocaleRef;// expected-… struct 14 typedef struct __attribute__((objc_bridge(NSDictionary))) __CFDictionary * CFDictionaryRef; struct 27 typedef struct __attribute__((objc_bridge(NSTesting))) __CFError *CFTestingRef; // expected-note {{… struct 156 typedef struct __attribute__ ((objc_bridge(MyPersonalError))) __CFMyPersonalErrorRef * CFMyPersonal… struct
|
D | objcbridge-attribute.mm | 4 typedef struct __attribute__ ((objc_bridge(NSError))) __CFErrorRef * CFErrorRef; // expected-note 5… struct 6 typedef struct __attribute__ ((objc_bridge(MyError))) __CFMyErrorRef * CFMyErrorRef; // expected-no… struct 8 typedef struct __attribute__((objc_bridge(12))) __CFMyColor *CFMyColorRef; // expected-error {{par… struct 10 typedef struct __attribute__ ((objc_bridge)) __CFArray *CFArrayRef; // expected-error {{'objc_bridg… struct 12 typedef struct __attribute__((objc_bridge(NSLocale, NSError))) __CFLocale *CFLocaleRef;// expected-… struct 14 typedef struct __attribute__((objc_bridge(NSDictionary))) __CFDictionary * CFDictionaryRef; struct 27 typedef struct __attribute__((objc_bridge(NSTesting))) __CFError *CFTestingRef; // expected-note {{… struct 156 typedef struct __attribute__ ((objc_bridge(MyPersonalError))) __CFMyPersonalErrorRef * CFMyPersonal… struct
|
D | objcbridge-static-cast.mm | 4 typedef struct __attribute__ ((objc_bridge(NSError))) __CFErrorRef * CFErrorRef; // expected-note 3… struct 6 typedef struct __attribute__ ((objc_bridge(MyError))) __CFMyErrorRef * CFMyErrorRef; // expected-no… struct 8 typedef struct __attribute__((objc_bridge(12))) __CFMyColor *CFMyColorRef; // expected-error {{par… struct 10 typedef struct __attribute__ ((objc_bridge)) __CFArray *CFArrayRef; // expected-error {{'objc_bridg… struct 12 typedef struct __attribute__((objc_bridge(NSLocale, NSError))) __CFLocale *CFLocaleRef;// expected-… struct 14 typedef struct __attribute__((objc_bridge(NSDictionary))) __CFDictionary * CFDictionaryRef; struct 27 typedef struct __attribute__((objc_bridge(NSTesting))) __CFError *CFTestingRef; // expected-note {{… struct
|
/external/clang/test/CodeGenObjCXX/ |
D | arc-attrs.mm | 3 id makeObject1() __attribute__((ns_returns_retained)); function 4 id makeObject2() __attribute__((ns_returns_retained)); function 24 T makeObjectT1() __attribute__((ns_returns_retained)); function 26 T makeObjectT2() __attribute__((ns_returns_retained)); function
|
/external/clang/test/Analysis/ |
D | nonnull.m | 37 } __attribute__((transparent_union)); function 42 } __attribute__((aligned(16))); function 47 } __attribute__((aligned(16))); function 52 } __attribute__((aligned(16))); function 60 } __attribute__((transparent_union)); function 69 } __attribute__((transparent_union)); function
|