diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-18 03:39:05 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-18 03:39:05 +0000 |
commit | 396f43620f366058edbaee67f6723ebcaef2e224 (patch) | |
tree | 0069d6eedd7b576bc8fbe73386339d04be29aa85 /clang/lib/Analysis/BugReporter.cpp | |
parent | a3d02636ef6bf045ed4ecbb0544288509075ac7b (diff) | |
download | bcm5719-llvm-396f43620f366058edbaee67f6723ebcaef2e224.tar.gz bcm5719-llvm-396f43620f366058edbaee67f6723ebcaef2e224.zip |
BugReport::VisitNode now takes BugReporter& instead of ASTContext&.
Shuffled around code in CFRefCount to better pair classes with implementation,
and started adding subclasses of RangedBugReport to handle better diagnostics
for reference count bugs.
llvm-svn: 49889
Diffstat (limited to 'clang/lib/Analysis/BugReporter.cpp')
-rw-r--r-- | clang/lib/Analysis/BugReporter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Analysis/BugReporter.cpp b/clang/lib/Analysis/BugReporter.cpp index 743f44bb326..e74295c3113 100644 --- a/clang/lib/Analysis/BugReporter.cpp +++ b/clang/lib/Analysis/BugReporter.cpp @@ -135,7 +135,7 @@ FullSourceLoc BugReport::getLocation(SourceManager& Mgr) { PathDiagnosticPiece* BugReport::VisitNode(ExplodedNode<ValueState>* N, ExplodedNode<ValueState>* PrevN, ExplodedGraph<ValueState>& G, - ASTContext& Ctx) { + BugReporter& BR) { return NULL; } @@ -352,7 +352,7 @@ void BugReporter::GeneratePathDiagnostic(PathDiagnostic& PD, } } else - if (PathDiagnosticPiece* piece = R.VisitNode(N, NextNode, *GTrim, Ctx)) + if (PathDiagnosticPiece* piece = R.VisitNode(N, NextNode, *GTrim, *this)) PD.push_front(piece); } } |