This is now handled by Sema::ActOnFinishFunctionBody() before ObjCDeallocChecker::checkASTDecl() is called.
A test added to test/Analysis to exercise this code path just prints the newer warning from Sema::ActOnFinishFunctionBody().
Differential D5017
[analyzer] Remove dead code in ObjCDeallocChecker that checked for a missing [super dealloc] call ddkilzer on Aug 21 2014, 4:54 PM. Authored by
Details
This is now handled by Sema::ActOnFinishFunctionBody() before ObjCDeallocChecker::checkASTDecl() is called. A test added to test/Analysis to exercise this code path just prints the newer warning from Sema::ActOnFinishFunctionBody().
Diff Detail Event TimelineComment Actions Huh, I'm surprised and a bit concerned that we have no tests for this, but this seems reasonable. Thanks! Do you have commit access or do you need me to commit for you? Comment Actions I did try writing a test for this, but the diag::warn_objc_missing_super_dealloc message for the check in Sema::ActOnFinishFunctionBody() is printed instead of this one. I do not have commit access. Please commit for me at your convenience. Thanks! Comment Actions BTW, I'm happy to write a test under tests/Analysis if you'd like, but these tests appear to cover all cases: test/SemaObjC/warn-missing-super.m test/SemaObjCXX/warn-missing-super.mm |