<div style="font-family: arial, helvetica, sans-serif; font-size: 10pt">On Wed, Jan 2, 2013 at 11:01 AM, Jordan Rose <span dir="ltr"><<a href="mailto:jordan_rose@apple.com" target="_blank">jordan_rose@apple.com</a>></span> wrote:<br>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Hi, Tim. The 3.2 release of LLVM brought a wealth of C++ understanding to the analyzer,</div>
</div></blockquote><div><br></div><div><a href="http://clang-analyzer.llvm.org/dev_cxx.html">http://clang-analyzer.llvm.org/dev_cxx.html</a> still says "Support for analyzing C++ and Objective-C++ files is currently extremely limited". Should that be updated?</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div> so while support is still incomplete, it should now already be a useful tool for C++. It just might not find as much as it could in theory.</div>
<div><br></div><div>I think your idea of a status page is a good one, but I am a bit hesitant about committing to it, mainly because saying the analyzer "supports" something is a bit nebulous. There are many constructs we "support" but do not model very precisely. That said, there are known deficiencies which we have definite plans to improve, the most immediate one being the inlining of constructors and destructors for local variables. We have only so much manpower, though.</div>
<div><br></div><div>I'm glad you saw our talk already. Unfortunately, what we consider "C++ support" is work that happens in the analyzer core, rather than in checkers. Checkers affect how the analyzer processes a statement, but it's the core that actually determines what statements to process (e.g. inlining, taking branches, etc). As John pointed out, however, there are plenty of <a href="http://clang-analyzer.llvm.org/potential_checkers.html" target="_blank">C++-related checks</a> that need to be implemented before the analyzer can be considered a first-class C++ analysis tool—we don't even pair "new" and "delete" right now.</div>
<div><br></div><div>So I'd say <a href="http://clang-analyzer.llvm.org/index.html" target="_blank">use the analyzer we have today</a>, and update every so often to get our latest improvements.</div><div><br></div><div>
Does that help?</div><span class="HOEnZb"><font color="#888888"><div>Jordan</div><div><br></div><br></font></span><div><div><div class="h5"><div>On Jan 1, 2013, at 12:32 , Tim Stowell <<a href="mailto:stowellt@gmail.com" target="_blank">stowellt@gmail.com</a>> wrote:</div>
<br></div></div><blockquote type="cite"><div><div class="h5">Hello all,<div><br></div><div>I realize C++ support isn't yet complete for the static analyzer, but is there a place where I can go to see the status, and what needs to be finished?</div>
<div><br></div><div>Also, I'm assuming that the C++ functionality is based on "checkers", is that the case? I ask because I was looking over the notes from the 2012 llvm meeting specifically the talk titled "<span style="font-family:'Trebuchet MS',Arial,Helvetica,sans-serif">Building a Checker in 24 hours". Thanks for any pointers, I'm new to clang but would like to use it to analyze C++ code.</span></div>
<div><span style="font-family:'Trebuchet MS',Arial,Helvetica,sans-serif"><br></span></div><div><span style="font-family:'Trebuchet MS',Arial,Helvetica,sans-serif">-Tim</span></div></div></div><div class="im">
_______________________________________________<br>cfe-dev mailing list<br><a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div></blockquote></div><br></div><br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>