diff options
Diffstat (limited to 'lib/Analysis/BugReporter.cpp')
-rw-r--r-- | lib/Analysis/BugReporter.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/Analysis/BugReporter.cpp b/lib/Analysis/BugReporter.cpp index c5a59e20d8..9954298165 100644 --- a/lib/Analysis/BugReporter.cpp +++ b/lib/Analysis/BugReporter.cpp @@ -43,8 +43,7 @@ static inline Stmt* GetStmt(const ProgramPoint& P) { PathDiagnosticPiece* -BugDescription::getEndPath(ASTContext& Ctx, - ExplodedNode<ValueState> *N) const { +BugDescription::getEndPath(ASTContext& Ctx, ExplodedNode<ValueState> *N) const { Stmt* S = GetStmt(N->getLocation()); @@ -60,6 +59,12 @@ BugDescription::getEndPath(ASTContext& Ctx, return P; } +void BugDescription::getRanges(const SourceRange*& beg, + const SourceRange*& end) const { + beg = NULL; + end = NULL; +} + void BugReporter::GeneratePathDiagnostic(PathDiagnostic& PD, ASTContext& Ctx, const BugDescription& B, ExplodedGraph<GRExprEngine>& G, @@ -266,7 +271,7 @@ void BugReporter::EmitWarning(Diagnostic& Diag, ASTContext& Ctx, return; std::ostringstream os; - os << "[CHECKER] " << B.getName(); + os << "[CHECKER] " << B.getDescription(); unsigned ErrorDiag = Diag.getCustomDiagID(Diagnostic::Warning, os.str().c_str()); |