Add range of return value expression in ReturnUndefChecker. Patch by Jim Goodnow II!

llvm-svn: 112569
This commit is contained in:
Ted Kremenek 2010-08-31 01:35:32 +00:00
parent 901176a755
commit b8691e6081
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ void ReturnUndefChecker::PreVisitReturnStmt(CheckerContext &C,
EnhancedBugReport *report =
new EnhancedBugReport(*BT, BT->getDescription(), N);
report->addRange(RetE->getSourceRange());
report->addVisitorCreator(bugreporter::registerTrackNullOrUndefValue, RetE);
C.EmitReport(report);