diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-10 16:05:13 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-10 16:05:13 +0000 |
commit | 83744ddbd9a3dbd4931c2a19f1ff201d4f665e79 (patch) | |
tree | 3c6b8c803ce5abc927b9d92b4cc120130c4ebfd4 /clang/lib/Analysis/BasicObjCFoundationChecks.cpp | |
parent | 5e1971c8946a53e5f8b5ff947935fc562c28f77f (diff) | |
download | bcm5719-llvm-83744ddbd9a3dbd4931c2a19f1ff201d4f665e79.tar.gz bcm5719-llvm-83744ddbd9a3dbd4931c2a19f1ff201d4f665e79.zip |
Fixed regressions in error reporting due to copy-paste errors (using the "begin"
iterator instead of "end") and not implementing "getDescription()" for Nil
argument checks.
llvm-svn: 49485
Diffstat (limited to 'clang/lib/Analysis/BasicObjCFoundationChecks.cpp')
-rw-r--r-- | clang/lib/Analysis/BasicObjCFoundationChecks.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/Analysis/BasicObjCFoundationChecks.cpp b/clang/lib/Analysis/BasicObjCFoundationChecks.cpp index 154adcaa477..e5a31bf50df 100644 --- a/clang/lib/Analysis/BasicObjCFoundationChecks.cpp +++ b/clang/lib/Analysis/BasicObjCFoundationChecks.cpp @@ -84,6 +84,13 @@ public: virtual ~Report() {} + virtual const char* getDescription() const { return s; } + + virtual void getRanges(const SourceRange*& B, const SourceRange*& E) const { + B = &R; + E = B+1; + } + virtual PathDiagnosticPiece* getEndPath(ASTContext& Ctx, ExplodedNode<ValueState> *N) const { |