parent
ea6c8dbf71
commit
7e1eae004c
|
|
@ -637,7 +637,7 @@ def warn_objc_isa_use : Warning<
|
||||||
"direct access to Objective-C's isa is deprecated in favor of "
|
"direct access to Objective-C's isa is deprecated in favor of "
|
||||||
"object_getClass()">, InGroup<DeprecatedObjCIsaUsage>;
|
"object_getClass()">, InGroup<DeprecatedObjCIsaUsage>;
|
||||||
def warn_objc_isa_assign : Warning<
|
def warn_objc_isa_assign : Warning<
|
||||||
"assignemt to Objective-C's isa is deprecated in favor of "
|
"assignment to Objective-C's isa is deprecated in favor of "
|
||||||
"object_setClass()">, InGroup<DeprecatedObjCIsaUsage>;
|
"object_setClass()">, InGroup<DeprecatedObjCIsaUsage>;
|
||||||
def warn_objc_property_default_assign_on_object : Warning<
|
def warn_objc_property_default_assign_on_object : Warning<
|
||||||
"default property attribute 'assign' not appropriate for non-GC object">,
|
"default property attribute 'assign' not appropriate for non-GC object">,
|
||||||
|
|
|
||||||
|
|
@ -920,7 +920,7 @@ int rdar_7770737_pos(void)
|
||||||
|
|
||||||
void pr6302(id x, Class y) {
|
void pr6302(id x, Class y) {
|
||||||
// This previously crashed the analyzer (reported in PR 6302)
|
// This previously crashed the analyzer (reported in PR 6302)
|
||||||
x->isa = y; // expected-warning {{assignemt to Objective-C's isa is deprecated in favor of object_setClass()}}
|
x->isa = y; // expected-warning {{assignment to Objective-C's isa is deprecated in favor of object_setClass()}}
|
||||||
}
|
}
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue