Skip to content
Snippets Groups Projects
Commit d1084f6d authored by Fariborz Jahanian's avatar Fariborz Jahanian
Browse files

Fix warning text of my last patch.

// rdar://13158394


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176308 91177308-0d34-0410-b5e6-96231b3b80d8
parent be9e8bfe
No related branches found
No related tags found
No related merge requests found
...@@ -363,7 +363,7 @@ def note_objc_container_start : Note< ...@@ -363,7 +363,7 @@ def note_objc_container_start : Note<
"%select{class|protocol|category|class extension|implementation" "%select{class|protocol|category|class extension|implementation"
"|category implementation}0 started here">; "|category implementation}0 started here">;
def warn_objc_protocol_qualifier_missing_id : Warning< def warn_objc_protocol_qualifier_missing_id : Warning<
"property has no object type specified; defaults to qualified 'id'">; "protocol has no object type specified; defaults to qualified 'id'">;
def err_objc_unknown_at : Error<"expected an Objective-C directive after '@'">; def err_objc_unknown_at : Error<"expected an Objective-C directive after '@'">;
def err_illegal_super_cast : Error< def err_illegal_super_cast : Error<
"cannot cast 'super' (it isn't an expression)">; "cannot cast 'super' (it isn't an expression)">;
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
@protocol X; @protocol X;
void foo() { void foo() {
<X> *P; // expected-warning{{property has no object type specified; defaults to qualified 'id'}} <X> *P; // expected-warning{{protocol has no object type specified; defaults to qualified 'id'}}
} }
@class A; @class A;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// bogus 'archaic' warnings with bad location info. // bogus 'archaic' warnings with bad location info.
@protocol <#protocol name#> <NSObject> // expected-error 2{{expected identifier}} \ @protocol <#protocol name#> <NSObject> // expected-error 2{{expected identifier}} \
// expected-error{{cannot find protocol declaration for 'NSObject'}} \ // expected-error{{cannot find protocol declaration for 'NSObject'}} \
// expected-warning{{property has no object type specified; defaults to qualified 'id'}} // expected-warning{{protocol has no object type specified; defaults to qualified 'id'}}
<#methods#> // expected-error{{expected identifier}} <#methods#> // expected-error{{expected identifier}}
......
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
void bar(); void bar();
void foo(id x) { void foo(id x) {
bar((short<SomeProtocol>)x); // expected-error {{expected ')'}} expected-note {{to match this '('}} bar((short<SomeProtocol>)x); // expected-error {{expected ')'}} expected-note {{to match this '('}}
bar((<SomeProtocol>)x); // expected-warning {{property has no object type specified; defaults to qualified 'id'}} bar((<SomeProtocol>)x); // expected-warning {{protocol has no object type specified; defaults to qualified 'id'}}
[(<SomeProtocol>)x bar]; // expected-warning {{property has no object type specified; defaults to qualified 'id'}} [(<SomeProtocol>)x bar]; // expected-warning {{protocol has no object type specified; defaults to qualified 'id'}}
} }
@protocol MyProtocol @protocol MyProtocol
...@@ -37,6 +37,6 @@ Class <SomeProtocol> UnfortunateGCCExtension; ...@@ -37,6 +37,6 @@ Class <SomeProtocol> UnfortunateGCCExtension;
@protocol Broken @end @protocol Broken @end
@interface Crash @end @interface Crash @end
@implementation Crash @implementation Crash
- (void)crashWith:(<Broken>)a { // expected-warning {{property has no object type specified; defaults to qualified 'id'}} - (void)crashWith:(<Broken>)a { // expected-warning {{protocol has no object type specified; defaults to qualified 'id'}}
} }
@end @end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment