[cfe-commits] r112569 - /cfe/trunk/lib/Checker/ReturnUndefChecker.cpp
Ted Kremenek
kremenek at apple.com
Mon Aug 30 18:35:32 PDT 2010
Author: kremenek
Date: Mon Aug 30 20:35:32 2010
New Revision: 112569
URL: http://llvm.org/viewvc/llvm-project?rev=112569&view=rev
Log:
Add range of return value expression in ReturnUndefChecker. Patch by Jim Goodnow II!
Modified:
cfe/trunk/lib/Checker/ReturnUndefChecker.cpp
Modified: cfe/trunk/lib/Checker/ReturnUndefChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Checker/ReturnUndefChecker.cpp?rev=112569&r1=112568&r2=112569&view=diff
==============================================================================
--- cfe/trunk/lib/Checker/ReturnUndefChecker.cpp (original)
+++ cfe/trunk/lib/Checker/ReturnUndefChecker.cpp Mon Aug 30 20:35:32 2010
@@ -61,6 +61,7 @@
EnhancedBugReport *report =
new EnhancedBugReport(*BT, BT->getDescription(), N);
+ report->addRange(RetE->getSourceRange());
report->addVisitorCreator(bugreporter::registerTrackNullOrUndefValue, RetE);
C.EmitReport(report);
More information about the cfe-commits
mailing list