From: Anna Zaks Date: Tue, 30 Oct 2012 04:18:21 +0000 (+0000) Subject: [analyzer]SimpleStreamChecker: add a TODO for better leak report. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=92d96604d54c2cef6416bf7b4810aa1ebb98010b;p=platform%2Fupstream%2Fllvm.git [analyzer]SimpleStreamChecker: add a TODO for better leak report. llvm-svn: 167001 --- diff --git a/clang/lib/StaticAnalyzer/Checkers/SimpleStreamChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/SimpleStreamChecker.cpp index 5721b10..832c89b 100644 --- a/clang/lib/StaticAnalyzer/Checkers/SimpleStreamChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/SimpleStreamChecker.cpp @@ -205,10 +205,12 @@ ExplodedNode *SimpleStreamChecker::reportLeaks(SymbolVector LeakedStreams, } // Attach bug reports to the leak node. + // TODO: Identify the leaked file descriptor. for (llvm::SmallVector::iterator I = LeakedStreams.begin(), E = LeakedStreams.end(); I != E; ++I) { BugReport *R = new BugReport(*LeakBugType, "Opened file is never closed; potential resource leak", ErrNode); + R->markInteresting(*I); C.EmitReport(R); }