Home
last modified time | relevance | path

Searched refs:unavailable (Results 1 – 25 of 442) sorted by relevance

12345678910>>...18

/external/llvm-project/clang/test/SemaCXX/
Dattr-unavailable.cpp24 #define FOO __attribute__((unavailable("not available - replaced")))
52 enum UnavailableEnum { UE_A, UE_B } __attribute__((unavailable)); // expected-note {{'UnavailableEn…
53 __attribute__((unavailable)) typedef enum UnavailableEnum UnavailableEnum;
57 __attribute__((unavailable))
66 class __attribute((unavailable)) UnavailableClass; // \
67 expected-note 3{{'UnavailableClass' has been explicitly marked unavailable here}}
69 void unavail_class_marked(UnavailableClass&) __attribute__((unavailable));
71 template <class T> void unavail_class_marked(UnavailableClass&) __attribute__((unavailable));
76 void untemplated_marked(UnavailableClass &UC) __attribute__((unavailable)) { in untemplated_marked()
87 void unavail_templated_calls_bar() __attribute__((unavailable)) { // \ in unavail_templated_calls_bar()
[all …]
/external/clang/test/SemaCXX/
Dattr-unavailable.cpp25 #define FOO __attribute__((unavailable("not available - replaced")))
53 enum UnavailableEnum { UE_A, UE_B } __attribute__((unavailable)); // expected-note {{'UnavailableEn…
54 __attribute__((unavailable)) typedef enum UnavailableEnum UnavailableEnum;
58 __attribute__((unavailable))
67 class __attribute((unavailable)) UnavailableClass; // \
68 expected-note 3{{'UnavailableClass' has been explicitly marked unavailable here}}
70 void unavail_class_marked(UnavailableClass&) __attribute__((unavailable));
72 template <class T> void unavail_class_marked(UnavailableClass&) __attribute__((unavailable));
77 void untemplated_marked(UnavailableClass &UC) __attribute__((unavailable)) { in untemplated_marked()
88 void unavail_templated_calls_bar() __attribute__((unavailable)) { // \ in unavail_templated_calls_bar()
[all …]
/external/clang/test/SemaObjC/
Dclass-unavail-warning.m4 __attribute__((unavailable("not available")))
5 @interface MyClass { // expected-note 8 {{'MyClass' has been explicitly marked unavailable here}}
19 MyClass *ivar; // expected-error {{unavailable}}
21 - (MyClass *)meth; // expected-error {{unavailable}}
31 @implementation MyClass (Cat2) // expected-error {{unavailable}}
35 [MyClass new]; // expected-error {{'MyClass' is unavailable: not available}}
36 [MyClass self]; // expected-error {{'MyClass' is unavailable: not available}}
37 [MyClass addObject:((void *)0)]; // expected-error {{'MyClass' is unavailable: not available}}
39 MyClass *foo = [MyClass new]; // expected-error 2 {{'MyClass' is unavailable: not available}}
47 __attribute__((visibility("default"))) __attribute__((availability(macosx,unavailable)))
[all …]
Dspecial-dep-unavail-warning.m6 - (void) unavailMeth __attribute__((unavailable)); // expected-note {{has been explicitly marked un… argument
10 - (void) unavailMeth2 __attribute__((unavailable)); // expected-note {{has been explicitly marked u… argument
12 …ttribute__((deprecated)) __attribute__((unavailable)); // expected-note {{has been explicitly mark… argument
14 - (void)FuzzyMeth1 __attribute__((unavailable)); argument
18 - (void) unavailMeth1 __attribute__((unavailable)); // expected-note {{has been explicitly marked u… argument
22 - (void) unavailMeth2 __attribute__((unavailable)); argument
23 …ttribute__((deprecated)) __attribute__((unavailable)); // expected-note {{has been explicitly mark… argument
25 - (void)FuzzyMeth __attribute__((unavailable)); argument
34 …[c unavailMeth]; // expected-warning {{'unavailMeth' may be unavailable because the receiver type …
36 …[c unavailMeth1]; // expected-warning {{'unavailMeth1' may be unavailable because the receiver typ…
[all …]
Dobjc-container-subscripting-attr.m6 …pt:(id)sub __attribute__((unavailable)); // expected-note 2 {{'objectForKeyedSubscript:' has been … argument
7 …t:(id)key __attribute__((unavailable)); // expected-note {{'setObject:forKeyedSubscript:' has been… argument
11 obj[obj] = obj; // expected-error {{'setObject:forKeyedSubscript:' is unavailable}}
12 return obj[obj]; // expected-error {{'objectForKeyedSubscript:' is unavailable}}
16 … [obj objectForKeyedSubscript:obj]; // expected-error {{'objectForKeyedSubscript:' is unavailable}}
Dprotocol-attribute.m3 __attribute ((unavailable))
4 @protocol FwProto; // expected-note{{marked unavailable}}
6 Class <FwProto> cFw = 0; // expected-error {{'FwProto' is unavailable}}
36 @protocol FwProto @end // expected-note{{marked unavailable}}
38 @interface MyClass2 <FwProto> // expected-error {{'FwProto' is unavailable}}
41 __attribute ((unavailable)) __attribute ((deprecated)) @protocol XProto; // expected-note{{marked u…
43 id <XProto> idX = 0; // expected-error {{'XProto' is unavailable}}
Darc-system-header.m8 cp = test0(op); // expected-error {{'test0' is unavailable in ARC}}
9 cp = *test1(&op); // expected-error {{'test1' is unavailable in ARC}}
15 p->field = 0; // expected-error {{'field' is unavailable in ARC}}
20 p->field1 = 0; // expected-error {{'field1' is unavailable in ARC}}
26 p->field = 0; // expected-error {{'field' is unavailable in ARC}}
42 *p.prop = 0; // expected-error {{'prop' is unavailable in ARC}}
43 p.prop = 0; // expected-error {{'prop' is unavailable in ARC}}
44 *[p prop] = 0; // expected-error {{'prop' is unavailable in ARC}}
45 [p setProp: 0]; // expected-error {{'setProp:' is unavailable in ARC}}
47 // expected-note@arc-system-header.h:41 2 {{property 'prop' is declared unavailable here}}
[all …]
Dattr-availability.m24 - (void)overridden5 __attribute__((availability(macosx,unavailable))); argument
26 - (void)unavailableMethod __attribute__((unavailable)); argument
38 …n6 __attribute__((availability(macosx,unavailable))); // expected-warning{{overriding method canno… argument
199 #define UNAVAILABLE __attribute__((unavailable("not available")))
202 enum MyEnum : int { // expected-note {{'MyEnum' has been explicitly marked unavailable here}}
203 …MyEnum_Blah UNAVAILABLE, // expected-note {{'MyEnum_Blah' has been explicitly marked unavailable h…
207 // expected-error@+2 {{'MyEnum' is unavailable: not available}}
208 // expected-error@+1 {{MyEnum_Blah' is unavailable: not available}}
218 -(void)methodB __attribute__((unavailable)); // expected-note 4{{'methodB' has been explicitly mark… argument
224 [obj methodB]; // expected-error{{'methodB' is unavailable}}
[all …]
/external/llvm-project/clang/test/SemaObjC/
Dclass-unavail-warning.m4 __attribute__((unavailable("not available")))
5 @interface MyClass { // expected-note 7 {{'MyClass' has been explicitly marked unavailable here}}
19 MyClass *ivar; // expected-error {{unavailable}}
21 - (MyClass *)meth; // expected-error {{unavailable}}
35 [MyClass new]; // expected-error {{'MyClass' is unavailable: not available}}
36 [MyClass self]; // expected-error {{'MyClass' is unavailable: not available}}
37 [MyClass addObject:((void *)0)]; // expected-error {{'MyClass' is unavailable: not available}}
39 MyClass *foo = [MyClass new]; // expected-error 2 {{'MyClass' is unavailable: not available}}
47 __attribute__((visibility("default"))) __attribute__((availability(macosx,unavailable)))
48 @interface Foo : NSObject @end // expected-note 3 {{'Foo' has been explicitly marked unavailable he…
[all …]
Dspecial-dep-unavail-warning.m6 - (void) unavailMeth __attribute__((unavailable)); // expected-note {{has been explicitly marked un… argument
10 - (void) unavailMeth2 __attribute__((unavailable)); // expected-note {{has been explicitly marked u… argument
12 …ttribute__((deprecated)) __attribute__((unavailable)); // expected-note {{has been explicitly mark… argument
14 - (void)FuzzyMeth1 __attribute__((unavailable)); argument
18 - (void) unavailMeth1 __attribute__((unavailable)); // expected-note {{has been explicitly marked u… argument
22 - (void) unavailMeth2 __attribute__((unavailable)); argument
23 …ttribute__((deprecated)) __attribute__((unavailable)); // expected-note {{has been explicitly mark… argument
25 - (void)FuzzyMeth __attribute__((unavailable)); argument
34 …[c unavailMeth]; // expected-warning {{'unavailMeth' may be unavailable because the receiver type …
36 …[c unavailMeth1]; // expected-warning {{'unavailMeth1' may be unavailable because the receiver typ…
[all …]
Dcall-unavailable-init-in-self.m20 - (instancetype)init __attribute__((unavailable)); // expected-note 4 {{'init' has been explicitly … argument
22 - (void)notImplemented __attribute__((unavailable)); argument
24 - (void)declaredInSuper __attribute__((unavailable)); argument
25 - (void)declaredInSuperCategory __attribute__((unavailable)); argument
66 (void)[[Sub alloc] init]; // expected-error {{'init' is unavailable}}
67 (void)[Sub new]; // expected-error {{'new' is unavailable}}
73 (void)[[Sub alloc] init]; // expected-error {{'init' is unavailable}}
74 (void)[Sub new]; // expected-error {{'new' is unavailable}}
80 -(void)meth __attribute__((unavailable)); argument
Dinfer-availability-from-init.m10 -(instancetype)init __attribute__((unavailable)); // expected-note{{'init' has been explicitly mark… argument
14 [MyObject new]; // expected-error{{'new' is unavailable}}
18 +(instancetype)init __attribute__((unavailable)); argument
27 +(instancetype)init __attribute__((unavailable)); argument
42 -(instancetype)init __attribute__((unavailable)); argument
50 -(instancetype)init __attribute__((unavailable)); argument
61 -(instancetype)init __attribute__((unavailable)); // expected-note {{'init' has been explicitly mar… argument
69 [NoInitSub new]; // expected-error {{'new' is unavailable}}
Dobjc-container-subscripting-attr.m6 …pt:(id)sub __attribute__((unavailable)); // expected-note 2 {{'objectForKeyedSubscript:' has been … argument
7 …t:(id)key __attribute__((unavailable)); // expected-note {{'setObject:forKeyedSubscript:' has been… argument
11 obj[obj] = obj; // expected-error {{'setObject:forKeyedSubscript:' is unavailable}}
12 return obj[obj]; // expected-error {{'objectForKeyedSubscript:' is unavailable}}
16 … [obj objectForKeyedSubscript:obj]; // expected-error {{'objectForKeyedSubscript:' is unavailable}}
Dprotocol-attribute.m3 __attribute ((unavailable))
4 @protocol FwProto; // expected-note{{marked unavailable}}
6 Class <FwProto> cFw = 0; // expected-error {{'FwProto' is unavailable}}
36 @protocol FwProto @end // expected-note{{marked unavailable}}
38 @interface MyClass2 <FwProto> // expected-error {{'FwProto' is unavailable}}
41 __attribute ((unavailable)) __attribute ((deprecated)) @protocol XProto; // expected-note{{marked u…
43 id <XProto> idX = 0; // expected-error {{'XProto' is unavailable}}
Dwarn-deprecated-implementations.m8 - (void) unavailable __attribute__((__unavailable__)); // expected-note {{method 'unavailable' decl…
24 - (void) unavailable { } // expected-warning {{implementing unavailable metho}} method
51 + (void) unavailable __attribute__((availability(macos, unavailable))); // expected-note {{method ' argument
59 + (void) unavailable { } // expected-warning {{implementing unavailable method}} class
Darc-system-header.m8 cp = test0(op); // expected-error {{'test0' is unavailable in ARC}}
9 cp = *test1(&op); // expected-error {{'test1' is unavailable in ARC}}
15 p->field = 0; // expected-error {{'field' is unavailable in ARC}}
20 p->field1 = 0; // expected-error {{'field1' is unavailable in ARC}}
41 *p.prop = 0; // expected-error {{'prop' is unavailable in ARC}}
42 p.prop = 0; // expected-error {{'prop' is unavailable in ARC}}
43 *[p prop] = 0; // expected-error {{'prop' is unavailable in ARC}}
44 [p setProp: 0]; // expected-error {{'setProp:' is unavailable in ARC}}
46 // expected-note@arc-system-header.h:41 2 {{property 'prop' is declared unavailable here}}
Davoid-unavailable-implementation-warning-in-app-extension.m3 // Declarations marked as 'unavailable' in an app extension should not generate a
7 - (void)ok __attribute__((availability(ios_app_extension,unavailable,message="not available")));
8 - (void)reallyUnavail __attribute__((availability(ios,unavailable))); // expected-note {{method 're… argument
9 - (void)reallyUnavail2 __attribute__((unavailable)); // expected-note {{method 'reallyUnavail2' dec… argument
19 - (void)reallyUnavail { // expected-warning {{implementing unavailable method}}
21 - (void)reallyUnavail2 { // expected-warning {{implementing unavailable method}}
/external/clang/test/Sema/
Dattr-availability.c47 __attribute__((availability(macos, unavailable))) // expected-warning {{attribute 'availability' is…
86 …OriginalUnavailable __attribute__((availability(macosx, unavailable))) // expected-note + {{'Origi…
91 …AllDeprecatedUnavailable __attribute__((availability(macosx, unavailable))) // expected-note + {{'…
96 } __attribute__((availability(macosx, unavailable)));
101 UserODUnavailable __attribute__((availability(macosx, unavailable))) = OriginalDeprecated,
105 UserOUUnavailable __attribute__((availability(macosx, unavailable))) = OriginalUnavailable,
109 UserADUnavailable __attribute__((availability(macosx, unavailable))) = AllDeprecatedCase,
113 UserADUUnavailable __attribute__((availability(macosx, unavailable))) = AllDeprecatedUnavailable,
117 UserAUUnavailable __attribute__((availability(macosx, unavailable))) = AllUnavailableCase,
123 …UserDeprecatedODUnavailable __attribute__((availability(macosx, unavailable))) = OriginalDeprecate…
[all …]
Dattr-availability-app-extensions.c7 __attribute__((availability(macosx_app_extension,unavailable)))
9 __attribute__((availability(ios_app_extension,unavailable)))
11 __attribute__((availability(tvos_app_extension,unavailable)))
16 __attribute__((availability(macosx,unavailable)))
18 __attribute__((availability(ios,unavailable)))
20 __attribute__((availability(tvos,unavailable)))
/external/llvm-project/clang/test/Sema/
Dattr-availability.c58 __attribute__((availability(macos, unavailable))) // expected-warning {{attribute 'availability' is…
97 …OriginalUnavailable __attribute__((availability(macosx, unavailable))) // expected-note + {{'Origi…
102 …AllDeprecatedUnavailable __attribute__((availability(macosx, unavailable))) // expected-note + {{'…
107 } __attribute__((availability(macosx, unavailable)));
112 UserODUnavailable __attribute__((availability(macosx, unavailable))) = OriginalDeprecated,
116 UserOUUnavailable __attribute__((availability(macosx, unavailable))) = OriginalUnavailable,
120 UserADUnavailable __attribute__((availability(macosx, unavailable))) = AllDeprecatedCase,
124 UserADUUnavailable __attribute__((availability(macosx, unavailable))) = AllDeprecatedUnavailable,
128 UserAUUnavailable __attribute__((availability(macosx, unavailable))) = AllUnavailableCase,
134 …UserDeprecatedODUnavailable __attribute__((availability(macosx, unavailable))) = OriginalDeprecate…
[all …]
Dattr-availability-app-extensions.c7 __attribute__((availability(macosx_app_extension,unavailable)))
9 __attribute__((availability(ios_app_extension,unavailable)))
11 __attribute__((availability(tvos_app_extension,unavailable)))
16 __attribute__((availability(macosx,unavailable)))
18 __attribute__((availability(ios,unavailable)))
20 __attribute__((availability(tvos,unavailable)))
25 __attribute__((availability(macOSApplicationExtension,unavailable)))
27 __attribute__((availability(iOSApplicationExtension,unavailable)))
29 __attribute__((availability(tvOSApplicationExtension,unavailable)))
/external/llvm-project/clang/test/Modules/
Dunavailable-local-visibility.test1 …g_cc1 -fmodules -I%S/Inputs/unavailable-local-visibility -fmodule-name=X -emit-module -x c++-modul…
2unavailable-local-visibility -fmodule-name=M -fmodule-map-file=%S/Inputs/unavailable-local-visibil…
Dattr-unavailable.m2 …dules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs/attr-unavailable %s -fsyntax-onl…
11 [x method2]; // expected-error{{'method2' is unavailable}}
12 // expected-note@oneA.h:2 {{'method2' has been explicitly marked unavailable here}}
13 [x method3]; // expected-error{{'method3' is unavailable}}
14 // expected-note@oneA.h:3 {{'method3' has been explicitly marked unavailable here}}
/external/clang/test/Modules/
Dattr-unavailable.m2 …dules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs/attr-unavailable %s -fsyntax-onl…
11 [x method2]; // expected-error{{'method2' is unavailable}}
12 // expected-note@oneA.h:2 {{'method2' has been explicitly marked unavailable here}}
13 [x method3]; // expected-error{{'method3' is unavailable}}
14 // expected-note@oneA.h:3 {{'method3' has been explicitly marked unavailable here}}
/external/libcups/cups/
Dversioning.h165 # define _CUPS_DEPRECATED __attribute__ ((unavailable)) _CUPS_PUBLIC
166 # define _CUPS_DEPRECATED_MSG(m) __attribute__ ((unavailable(m))) _CUPS_PUBLIC
188 # define _CUPS_DEPRECATED __attribute__ ((unavailable)) _CUPS_PUBLIC
189 # define _CUPS_DEPRECATED_MSG(m) __attribute__ ((unavailable(m))) _CUPS_PUBLIC
190 # define _CUPS_DEPRECATED_1_2_MSG(m) __attribute__ ((unavailable(m))) _CUPS_PUBLIC
191 # define _CUPS_DEPRECATED_1_6_MSG(m) __attribute__ ((unavailable(m))) _CUPS_PUBLIC
192 # define _CUPS_DEPRECATED_1_7_MSG(m) __attribute__ ((unavailable(m))) _CUPS_PUBLIC
193 # define _CUPS_DEPRECATED_2_2_MSG(m) __attribute__ ((unavailable(m))) _CUPS_PUBLIC
236 # define _CUPS_INTERNAL_MSG(m) __attribute__ ((unavailable(m))) _CUPS_PUBLIC

12345678910>>...18