[cfe-commits] r124674 - /cfe/trunk/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp

Argyrios Kyrtzidis akyrtzi at gmail.com
Tue Feb 1 11:32:55 PST 2011


Author: akirtzidis
Date: Tue Feb  1 13:32:55 2011
New Revision: 124674

URL: http://llvm.org/viewvc/llvm-project?rev=124674&view=rev
Log:
[analyzer] Slightly improve the diagnostic message of ObjCSelfInitChecker.

Modified:
    cfe/trunk/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp

Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp?rev=124674&r1=124673&r2=124674&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp Tue Feb  1 13:32:55 2011
@@ -209,7 +209,7 @@
     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 @@
     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...]'");
 }
 





More information about the cfe-commits mailing list