<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks for your patience Lei. After a break, I was able to get back to reviewing this properly.<div><br></div><div>Overall, I think this is a great initial version of the checker. We will still want to refine the diagnostics, but I think the base functionality is good. I went ahead and checked in this patch (with changes) in r147494. The overall checker looked good that I thought only a few tweaks were necessary to get it into mainline, so I went and made the changes myself.</div><div><br></div><div>Here are the highlights of my changes:</div><div><br></div><div>(1) I had Enqueue() do all the checking to see if the method was prescanned or elible for scanning. No need to duplicate that checking in a bunch of places. I added a "NotVisited" value to the enum (which gets default constructed) to avoid uses of "count()" in the DenseMap. This should be slightly more efficient.</div><div><br></div><div>(2) For fully resolved calls, e.g. B::foo(), your logic had the checker skipping those calls entirely. That's not quite right. They should be scanned like other calls, just not warned about being virtual calls. I've gone ahead and fixed that.</div><div><br></div><div>(3) I doxygenified more of the comments, and cleaned up a bit of the formatting.</div><div><br></div><div>I think the next step is to improve the bug reporting. I think the natural way to do this is to provide a way to issue a BugReport with a collection of PathDiagnostics. This allows one to generate a bug report without the assistance of BugReporter constructing it for you.</div><div><br><div><div>On Dec 25, 2011, at 2:11 AM, 章磊 wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Hi Ted,<br><br>I re-implement this checker as you suggested.<br><br>Based on your suggestion, I modified two minor places for the bug<br>report generation.<br><br> 1. Use CallExpr instead of FunctionDecl as the WorkList unit.<br> 2. Introduced a pointer point to the the CallExpr whose body is<br>current walking.<br><br>I test this patch on some real code base, and it seems to work well.<br><br>More comments inline, and looking forward to your reply.</span></blockquote></div><br></div></body></html>