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 | 15a3daa18990f6d8e5417918a83276ab9532638e (patch) | |
tree | d95a6da4f2fb9428623648ea9f10d7d7de13a8ab /clang/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp | |
parent | b278aafbfb07f9fe1547beed71a34afb05d482cf (diff) | |
download | bcm5719-llvm-15a3daa18990f6d8e5417918a83276ab9532638e.tar.gz bcm5719-llvm-15a3daa18990f6d8e5417918a83276ab9532638e.zip |
[analyzer] Slightly improve the diagnostic message of ObjCSelfInitChecker.
llvm-svn: 124674
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp index 2eceb9caa32..fb8ddb0792b 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...]'"); } |