/external/llvm-project/clang/test/SemaCXX/ |
D | attr-unavailable.cpp | 24 #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/ |
D | attr-unavailable.cpp | 25 #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/ |
D | class-unavail-warning.m | 4 __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 …]
|
D | special-dep-unavail-warning.m | 6 - (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 …]
|
D | objc-container-subscripting-attr.m | 6 …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}}
|
D | protocol-attribute.m | 3 __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}}
|
D | arc-system-header.m | 8 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 …]
|
D | attr-availability.m | 24 - (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/ |
D | class-unavail-warning.m | 4 __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 …]
|
D | special-dep-unavail-warning.m | 6 - (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 …]
|
D | call-unavailable-init-in-self.m | 20 - (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
|
D | infer-availability-from-init.m | 10 -(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}}
|
D | objc-container-subscripting-attr.m | 6 …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}}
|
D | protocol-attribute.m | 3 __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}}
|
D | warn-deprecated-implementations.m | 8 - (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
|
D | arc-system-header.m | 8 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}}
|
D | avoid-unavailable-implementation-warning-in-app-extension.m | 3 // 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/ |
D | attr-availability.c | 47 __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 …]
|
D | attr-availability-app-extensions.c | 7 __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/ |
D | attr-availability.c | 58 __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 …]
|
D | attr-availability-app-extensions.c | 7 __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/ |
D | unavailable-local-visibility.test | 1 …g_cc1 -fmodules -I%S/Inputs/unavailable-local-visibility -fmodule-name=X -emit-module -x c++-modul… 2 …unavailable-local-visibility -fmodule-name=M -fmodule-map-file=%S/Inputs/unavailable-local-visibil…
|
D | attr-unavailable.m | 2 …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/ |
D | attr-unavailable.m | 2 …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/ |
D | versioning.h | 165 # 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
|