From 15a3daa18990f6d8e5417918a83276ab9532638e Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Tue, 1 Feb 2011 19:32:55 +0000 Subject: [PATCH] [analyzer] Slightly improve the diagnostic message of ObjCSelfInitChecker. llvm-svn: 124674 --- clang/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp index 2eceb9caa328..fb8ddb0792bd 100644 --- a/clang/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp @@ -209,7 +209,7 @@ void ObjCSelfInitChecker::PostVisitObjCIvarRefExpr(CheckerContext &C, return; 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...]'"); } @@ -221,7 +221,7 @@ void ObjCSelfInitChecker::PreVisitReturnStmt(CheckerContext &C, return; 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...]'"); }