[analyzer] Slightly improve the diagnostic message of ObjCSelfInitChecker.

llvm-svn: 124674
This commit is contained in:
Argyrios Kyrtzidis 2011-02-01 19:32:55 +00:00
parent b278aafbfb
commit 15a3daa189
1 changed files with 2 additions and 2 deletions

View File

@ -209,7 +209,7 @@ void ObjCSelfInitChecker::PostVisitObjCIvarRefExpr(CheckerContext &C,
return; return;
checkForInvalidSelf(E->getBase(), C, checkForInvalidSelf(E->getBase(), C,
"Instance variable used before setting 'self' to the result of " "Instance variable used while 'self' is not set to the result of "
"'[(super or self) init...]'"); "'[(super or self) init...]'");
} }
@ -221,7 +221,7 @@ void ObjCSelfInitChecker::PreVisitReturnStmt(CheckerContext &C,
return; return;
checkForInvalidSelf(S->getRetValue(), C, checkForInvalidSelf(S->getRetValue(), C,
"Returning 'self' before setting it to the result of " "Returning 'self' while it is not set it to the result of "
"'[(super or self) init...]'"); "'[(super or self) init...]'");
} }