?? super-dealloc-2.mm
字號:
/* Check for warnings about missing [super dealloc] calls. *//* Author: Ziemowit Laski <zlaski@apple.com> *//* { dg-do compile } */@interface Foo { void *isa;}- (void) dealloc;- (void) some_other;@end@interface Bar: Foo { void *casa;}- (void) dealloc0;@end@interface Baz: Bar { void *usa;}- (void) dealloc;@end@implementation Foo- (void) dealloc { isa = 0; /* Should not warn here. */}- (void) some_other { isa = (void *)-1;}@end@implementation Bar- (void) dealloc0 { casa = 0; [super some_other]; /* Should not warn here. */} @end@implementation Baz- (void) dealloc { usa = 0; [super dealloc0]; } /* { dg-warning "method possibly missing a .super dealloc. call" } */@end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -