File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -777,7 +777,7 @@ def warn_arc_perform_selector_leaks : Warning<
777
777
"performSelector may cause a leak because its selector is unknown">,
778
778
InGroup<DiagGroup<"arc-performSelector-leaks">>;
779
779
def warn_dealloc_in_category : Warning<
780
- "decalloc is being overridden in category ">,
780
+ "-dealloc in a category is being overridden">,
781
781
InGroup<DeallocInCategory>;
782
782
def err_gc_weak_property_strong_type : Error<
783
783
"weak attribute declared on a __strong type property in GC mode">;
Original file line number Diff line number Diff line change @@ -3215,11 +3215,9 @@ Decl *Sema::ActOnMethodDeclaration(
3215
3215
}
3216
3216
if (isa<ObjCCategoryImplDecl>(ImpDecl)) {
3217
3217
ObjCMethodFamily family = ObjCMethod->getMethodFamily ();
3218
- if (family == OMF_dealloc && IMD && IMD->isOverriding ()) {
3218
+ if (family == OMF_dealloc && IMD && IMD->isOverriding ())
3219
3219
Diag (ObjCMethod->getLocation (), diag::warn_dealloc_in_category)
3220
3220
<< ObjCMethod->getDeclName ();
3221
- Diag (ImpDecl->getLocation (), diag::note_declared_at);
3222
- }
3223
3221
}
3224
3222
} else {
3225
3223
cast<DeclContext>(ClassDecl)->addDecl (ObjCMethod);
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ @interface Subclass (CAT)
35
35
- (void )dealloc ;
36
36
@end
37
37
38
- @implementation Subclass (CAT) // expected-note {{declared here}}
39
- - (void )dealloc { // expected-warning {{decalloc is being overridden in category }}
38
+ @implementation Subclass (CAT)
39
+ - (void )dealloc { // expected-warning {{-dealloc in a category is being overridden}}
40
40
}
41
41
@end
You can’t perform that action at this time.
0 commit comments