diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-02-01 19:32:55 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-02-01 19:32:55 +0000 |
commit | be29d8d3dff34313c1ae1ae09145e64dd948b0da (patch) | |
tree | cb30bff9a279d114fb87fe4ef9fc74c0bbbdb1f6 /lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp | |
parent | 218937c13ef5b0625a70aad41ca7a92da9278bd2 (diff) |
[analyzer] Slightly improve the diagnostic message of ObjCSelfInitChecker.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124674 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp b/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp index 2eceb9caa3..fb8ddb0792 100644 --- a/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp +++ b/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...]'"); } |