Home
last modified time | relevance | path

Searched defs:__attribute__ (Results 1 – 25 of 322) sorted by relevance

12345678910>>...13

/llvm-project-15.0.7/clang/test/Parser/
H A Dattr-external-source-symbol.m3 void function(void) __attribute__((external_source_symbol(language="Swift", defined_in="module", ge… function
5 __attribute__((external_source_symbol(language="Swift", defined_in="module"))) function
8 - (void)method __attribute__((external_source_symbol(defined_in= "module"))); method
15 } __attribute__((external_source_symbol(language = "Swift"))); function
18 __attribute__((external_source_symbol())); // expected-error {{expected 'language', 'defined_in', o… function
20 __attribute__((external_source_symbol(invalid))); // expected-error {{expected 'language', 'defined… function
22 __attribute__((external_source_symbol(language))); // expected-error {{expected '=' after language}} function
39 __attribute__((external_source_symbol(language="Objective-C++", defined_in="Some file with spaces")… function
42 __attribute__((external_source_symbol(language="C Sharp", defined_in="file:////Hello world with spa… function
48 __attribute__((external_source_symbol(=))); // expected-error {{expected 'language', 'defined_in', … function
[all …]
H A Dobjcbridge-related-attribute.m4 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
/llvm-project-15.0.7/clang/test/SemaObjCXX/
H A Dattr-trivial-abi.mm3 void __attribute__((trivial_abi)) foo(); // expected-warning {{'trivial_abi' attribute only applies… function
9 struct __attribute__((trivial_abi)) S1 { struct
13 struct __attribute__((trivial_abi)) S2 { // expected-warning {{'trivial_abi' cannot be applied to '… struct
17 struct __attribute__((trivial_abi)) S3 { // expected-warning {{'trivial_abi' cannot be applied to '… struct
23 } __attribute__((trivial_abi)); // expected-warning {{'trivial_abi' cannot be applied to 'S3_2'}} e… function
32 struct __attribute__((trivial_abi)) S9 : public S4 { struct
39 struct __attribute__((trivial_abi)) S12 { // expected-warning {{'trivial_abi' cannot be applied to … function
55 struct __attribute__((trivial_abi(1))) S8 { // expected-error {{'trivial_abi' attribute takes no ar… struct
61 struct __attribute__((trivial_abi)) S10 { struct
80 struct __attribute__((trivial_abi)) S15 : S14<T> { function
[all …]
/llvm-project-15.0.7/clang/test/Sema/
H A Dattr-enforce-tcb-errors.m5 __attribute__((objc_root_class)) function
15 - (void)onInterfaceOnly __attribute__((enforce_tcb("test"))); method
40 {
46 {
55 {
61 {
68 {
75 {
81 {
86 __attribute__((enforce_tcb("y"))) { method
[all …]
/llvm-project-15.0.7/clang/test/Index/
H A Dindex-attrs.m7 -(id)prop __attribute__((annotate("anno"))); method
17 id __attribute__((objc_precise_lifetime)) x; function
18 struct __attribute__((objc_boxable)) S { struct
22 __attribute__((objc_exception)) function
23 __attribute__((objc_root_class)) function
24 __attribute__((objc_subclassing_restricted)) function
25 __attribute__((objc_runtime_visible)) function
27 -(id)a __attribute__((ns_returns_retained)); method
28 -(id)b __attribute__((ns_returns_not_retained)); method
30 -(id)d __attribute__((ns_consumes_self)); method
[all …]
H A Davailability.mm1 __attribute__((availability(macosx, introduced = 8.0))) function
4 int i1 __attribute__((availability(macosx, introduced = 9.0))); field
7 @property int p1 __attribute__((availability(macosx, introduced=9.0))); property
9 - (void)m1 __attribute__((availability(macosx, introduced = 9.0))); method
19 __attribute__((availability(macosx, introduced = 10.0))) function
22 @property int p3 __attribute__((availability(macosx, introduced=11.0))); property
24 - (void)m3 __attribute__((availability(macosx, introduced = 11.0))); method in Cat
34 __attribute__((availability(macosx, introduced = 10.0))) function
37 @property int p5 __attribute__((availability(macosx, introduced=11.0))); property
39 - (void)m5 __attribute__((availability(macosx, introduced = 11.0))); method
/llvm-project-15.0.7/clang/test/SemaObjC/
H A Dattr-swift-error.m13 extern int f0(void) __attribute__((__swift_error__)); function
15 extern int f1(void) __attribute__((__swift_error__(invalid))); function
17 extern int f2(void) __attribute__((__swift_error__(none,zero_result))); function
45 - (instancetype)o0 __attribute__((__swift_error__(none))); method
46 - (instancetype)o1 __attribute__((__swift_error__(nonnull_error))); method
48 - (instancetype)o2 __attribute__((__swift_error__(null_result))); method
50 - (instancetype)o3 __attribute__((__swift_error__(nonzero_result))); method
52 - (instancetype)o4 __attribute__((__swift_error__(zero_result))); method
56 extern BOOL m0(CFErrorRef *) __attribute__((__swift_error__(none))); function
82 extern void *p0(void) __attribute__((__swift_error__(none))); function
[all …]
H A Doverride-opt-prop-availability.m5 @property (nonatomic) int reqProp __attribute__((availability(ios, introduced=12.0))); // expected-… property
10 @property (nonatomic) int myProp __attribute__((availability(ios, introduced=12.0))); // expected-n… property
13 @property (nonatomic, readonly) int depProp __attribute__((availability(ios, introduced=8.0, deprec… property
16 @property (nonatomic) int obsProp __attribute__((availability(ios, introduced=8.0, obsoleted=12.0))… property
19 - (void) unavaibleInClass __attribute__((availability(ios, introduced=12.0))); // expected-note {{m… method
25 @property (nonatomic) int myProp __attribute__((availability(ios, introduced=13.0))); // expected-n… property
27 @property (nonatomic) int reqProp __attribute__((availability(ios, introduced=13.0))); // expected-… property
29 @property (nonatomic, readonly) int depProp __attribute__((availability(ios, introduced=8.0, deprec… property
31 @property (nonatomic) int obsProp __attribute__((availability(ios, introduced=8.0, obsoleted=10.0))… property
33 - (void) unavaibleInClass __attribute__((availability(ios, unavailable))); // expected-warning {{me… method
H A Dattr-swift_private.m3 __attribute__((__swift_private__)) function
7 __attribute__((__swift_private__)) function
12 @property id property __attribute__((__swift_private__)); property
13 - (void)instanceMethod __attribute__((__swift_private__)); method
14 + (void)classMethod __attribute__((__swift_private__)); class
17 void f(void) __attribute__((__swift_private__)); function
19 struct __attribute__((__swift_private__)) S {}; struct
21 enum __attribute__((__swift_private__)) E { function
28 void g(void) __attribute__((__swift_private__("private"))); function
H A Dattr-availability-1.m17 - (void)overridden __attribute__((availability(macosx,introduced=10_3))); // expected-note{{overrid… method
18 - (void)overridden2 __attribute__((availability(macosx,introduced=10_3))); method
19 - (void)overridden3 __attribute__((availability(macosx,deprecated=10_3))); method
20 - (void)overridden4 __attribute__((availability(macosx,deprecated=10_3))); // expected-note{{overri… method
21 - (void)overridden5 __attribute__((availability(macosx,unavailable))); method
22 - (void)overridden6 __attribute__((availability(macosx,introduced=10_3))); // expected-note{{overri… method
29 - (void)overridden2 __attribute__((availability(macosx,introduced=10_2))); method
30 - (void)overridden3 __attribute__((availability(macosx,deprecated=10_4))); method
32 - (void)overridden5 __attribute__((availability(macosx,introduced=10_3))); method
79 extern NSString *NSNibTopLevelObjects __attribute__((availability(macosx,introduced=10_0 ,deprecate… function
[all …]
H A Dattr-availability.m24 - (void)overridden5 __attribute__((availability(macosx,unavailable))); method in WARN_PARTIAL
26 - (void)unavailableMethod __attribute__((unavailable)); method in WARN_PARTIAL
252 __attribute__((objc_root_class)) function
279 __attribute__((objc_root_class)) function
282 -(void)methodB __attribute__((unavailable)); method
285 __attribute__((objc_root_class)) function
291 {
293 -(void)methodB __attribute__((unavailable)) { method
297 __attribute__((objc_root_class)) function
321 __attribute__((objc_root_class)) function
[all …]
H A Dspecial-dep-unavail-warning.m6 - (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
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
22 - (void) unavailMeth2 __attribute__((unavailable)); method
[all …]
H A Dattr-availability-priority.m3 void explicit(void) __attribute__((availability(tvos, introduced=11.0, deprecated=12.0))); // expec… function
4 void inferred(void) __attribute__((availability(ios, introduced=11.0, deprecated=12.0))); // expect… function
6 __attribute__((availability(ios, introduced=11.0, deprecated=12.0))) function
7 __attribute__((availability(tvos, introduced=11.0))); function
9 __attribute__((availability(tvos, introduced=11.0))) function
10 __attribute__((availability(ios, introduced=11.0, deprecated=12.0))); function
23 void explicitWinsOverExplicitFromPragma(void) __attribute__((availability(tvos, introduced=11.0))); function
24 void implicitLosesOverExplicitFromPragma(void) __attribute__((availability(ios, introduced=11.0)));… function
31 void explicitWinsOverImplicitFromPragma(void) __attribute__((availability(tvos, introduced=11.0))); function
32 void implicitWinsOverImplicitFromPragma(void) __attribute__((availability(ios, introduced=11.0))); function
H A Dattr-swift_bridge.m4 __attribute__((__swift_bridge__)) function
9 __attribute__((__swift_bridge__(1))) function
14 __attribute__((__swift_bridge__("K", 1))) function
20 - (void)method __attribute__((__swift_bridge__("method"))); method
23 __attribute__((__swift_bridge__("Array"))) function
27 __attribute__((__swift_bridge__("ProtocolP"))) function
33 struct __attribute__((__swift_bridge__("StructT"))) T {}; struct
36 struct __attribute__((swift_bridge("foo"), swift_bridge("foo"))) S; struct
38 struct __attribute__((swift_bridge("foo"), swift_bridge("bar"))) S; // expected-warning {{attribute… struct
H A Dmethod-direct.m13 __attribute__((objc_root_class)) function
18 - (void)rootDirect __attribute__((objc_direct)); // expected-note {{previous declaration is he… method
19 + (void)classRootDirect __attribute__((objc_direct)); // expected-note {{previous declaration is he… class
27 __attribute__((objc_direct_members)) function
33 __attribute__((objc_direct_members)) function
53 __attribute__((objc_direct_members)) function
56 - (void)unavailableInChild __attribute__((unavailable)); // should not warn method
84 __attribute__((objc_direct_members)) function
118 {
121 {
[all …]
H A Dnonnull.m9 int f2(int *x) __attribute__ ((nonnull (1))); function
11 int f4(int *x, int *y) __attribute__ ((nonnull (1,2))); function
12 int f5(int *x, int *y) __attribute__ ((nonnull (2,1))); function
13 int f6(NSObject *x) __attribute__ ((nonnull (1))); // no-warning function
14 int f7(NSObject *x) __attribute__ ((nonnull)); // no-warning function
20 __attribute__((nonnull(1,3))); function
23 __attribute__((nonnull(2))); function
58 } dispatch_object_t __attribute__((transparent_union)); function
60 __attribute__((nonnull)) function
85 - (void*) testRetNull __attribute__((returns_nonnull)); method
[all …]
H A Dformat-arg-attribute.m17 extern NSString *fa2 (const NSString *) __attribute__((format_arg(1))); function
18 extern NSString *fa3 (NSString *) __attribute__((format_arg(1))); function
25 union u1 { int i; } __attribute__((format_arg(1))); // expected-warning {{'format_arg' attribute o… function
26 enum e1 { E1V0 } __attribute__((format_arg(1))); // expected-warning {{'format_arg' attribute only … function
28 extern NSString *ff3 (const NSString *) __attribute__((format_arg(3-2))); function
32 extern NSString *fi0 (int) __attribute__((format_arg(1))); // expected-error {{format argument not… function
33 extern NSString *fi1 (NSString *) __attribute__((format_arg(1))); function
35 extern NSString *fi2 (NSString *) __attribute__((format_arg(1))); function
38 extern NSString *fi4 (const NSString *) __attribute__((format_arg(1))); function
39 extern NSString *fi5 (const NSString *) __attribute__((format_arg(1))); function
[all …]
H A Dattr-objc-non-lazy.m3 __attribute__((objc_nonlazy_class)) function
9 __attribute__((objc_nonlazy_class)) int X; // expected-error {{'objc_nonlazy_class' attribute only … function
11 __attribute__((objc_nonlazy_class())) function
17 __attribute__((objc_nonlazy_class("foo"))) // expected-error{{'objc_nonlazy_class' attribute takes … function
23 __attribute__((objc_nonlazy_class)) // expected-error {{'objc_nonlazy_class' attribute only applies… function
27 __attribute__((objc_nonlazy_class)) // expected-error {{'objc_nonlazy_class' attribute only applies… function
33 __attribute__((objc_nonlazy_class)) function
37 __attribute__((objc_nonlazy_class)) function
H A Dobjc-asm-attribute-neg-test.m4 __attribute__((objc_runtime_name)) // expected-error {{'objc_runtime_name' attribute takes one argu… function
8 __attribute__((objc_runtime_name(123))) // expected-error {{'objc_runtime_name' attribute requires … function
12 __attribute__((objc_runtime_name("MySecretNamespace.Protocol"))) function
16 __attribute__((objc_runtime_name("MySecretNamespace.Message"))) function
24 - (int) getMyProperty __attribute__((objc_runtime_name("MySecretNamespace.Message"))); // expected-… method in int
30 __attribute__((objc_runtime_name("MySecretNamespace.ForwardClass"))) function
33 __attribute__((objc_runtime_name("MySecretNamespace.ForwardProtocol"))) function
38 - (id) MyMethod __attribute__((objc_runtime_name("MySecretNamespace.Message"))) { method
49 __attribute__((objc_runtime_name("MySecretNamespace.Message"))) function
H A Dattr-swift_objc_members.m7 __attribute__((__swift_objc_members__)) function
8 __attribute__((__objc_root_class__)) function
12 __attribute__((swift_objc_members)) function
17 __attribute__((swift_objc_members)) function
22 __attribute__((__swift_objc_members__("J"))) function
H A Dsubclassing-restricted-attr.m5 __attribute__((objc_subclassing_restricted)) function
9 __attribute__((objc_subclassing_restricted)) function
17 __attribute__((objc_root_class)) function
21 __attribute__((objc_subclassing_restricted)) function
26 __attribute__((objc_subclassing_restricted)) function
32 __attribute__((objc_subclassing_restricted)) function
H A Dmethod-direct-one-definition.m3 __attribute__((objc_root_class)) function
8 - (void)A_Cat __attribute__((objc_direct)); // expected-note {{previous declaration is here}} method in Cat
16 __attribute__((objc_root_class)) function
18 - (void)B_primary __attribute__((objc_direct)); // expected-note {{previous declaration is here}} method
26 - (void)B_Cat __attribute__((objc_direct)); method in Cat
30 - (void)B_OtherCat __attribute__((objc_direct)); // expected-note {{previous declaration is here}} method in OtherCat
38 - (void)B_implOnly __attribute__((objc_direct)) { // expected-note {{previous declaration is here}} method
51 - (void)B_implOnly __attribute__((objc_direct)) { // expected-error {{direct method declaration con… method in Cat
55 __attribute__((objc_root_class)) function
57 - (void)C1 __attribute__((objc_direct)); // expected-note {{previous declaration is here}} method
[all …]
H A Dformat-ostrace-warning.m20 …torRef alloc, CFDictionaryRef formatOptions, const char* format, ...) __attribute__((format(os_tra… function
23 …CFDictionaryRef formatOptions, const char* format, va_list arguments) __attribute__((format(os_tra… function
26 …ef theString, CFDictionaryRef formatOptions, const char* format, ...) __attribute__((format(os_tra… function
29 …CFDictionaryRef formatOptions, const char* format, va_list arguments) __attribute__((format(os_tra… function
39 extern void MyOSLog(const char* format, ...) __attribute__((format(os_trace, 1, 2))); function
40 extern void MyFStringCreateWithFormat(const char *format, ...) __attribute__((format(os_trace, 1, 2… function
41 extern void XMyOSLog(int, const char* format, ...) __attribute__((format(os_trace, 2, 3))); function
42 extern void os_trace(const char *format, ...) __attribute__((format(os_trace, 1, 2))); function
/llvm-project-15.0.7/clang/test/CodeGenObjC/
H A Ddirect-method.m12 __attribute__((objc_root_class)) function
14 - (int)getInt __attribute__((objc_direct)); method
26 - (int)getInt __attribute__((objc_direct)) { method
59 + (int)classGetInt __attribute__((objc_direct)) { class
79 - (struct my_complex_struct)getComplex __attribute__((objc_direct)) { method
122 - (struct my_aggregate_struct)getAggregate __attribute__((objc_direct)) { method
175 - (int)directMethodInExtension __attribute__((objc_direct)); method in nonatomic
179 - (int)directMethodInCategory __attribute__((objc_direct)); method in Cat
182 __attribute__((objc_direct_members)) function
201 - (int)directMethodInCategoryNoDecl __attribute__((objc_direct)) { method in Cat
[all …]
H A Ddeadcode_strip_used_var.m7 __attribute__((used)) static int XXXXXX __attribute__ ((section ("__DATA,__Xinterpose"))) ; function
8 __attribute__((used)) static int YYYY __attribute__ ((section ("__DATA,__Xinterpose"))) ; function

12345678910>>...13