]> granicus.if.org Git - clang/commitdiff
[analyzer] Slightly improve the diagnostic message of ObjCSelfInitChecker.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 1 Feb 2011 19:32:55 +0000 (19:32 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 1 Feb 2011 19:32:55 +0000 (19:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124674 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp

index 2eceb9caa32857bb6776a44983f191a04ef575ec..fb8ddb0792bd77c720ee78183e771a2f38362251 100644 (file)
@@ -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...]'");
 }