<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Nov 26, 2012, at 4:14 PM, Peeter Joot <<a href="mailto:peeter.joot@gmail.com">peeter.joot@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word">
<div><div class="im"><blockquote type="cite"> In particular, it doesn't add: --analyze.  Do I need to both add that to my compilation options and also call scan-build?</blockquote><br></div>
<div>You can look at the Analyze() routine in ccc-analyzer. It does not call "clang --analyze" directly, but calls a lower level "clang -cc1 -analyze <span style="font-family:Monaco;font-size:11px">-analyzer-checker=.."</span><span style="font-size:13px"> the command built by scan-build. Unless you specify extra options to scan-build they will be equivalent (scan-build calls clang --analyzer -### to get the equivalent cc1 command).</span></div>
</div></div></blockquote><div><br></div><div>Thanks, the issue was that %LangMap was missing C (capital C), which is the suffix used by most C++ code in our product, and then skipped my source file silently.  I've added:<br>
<br><div>  'C'   => 'c++',</div></div><div><br></div></div></div></blockquote><div><br></div>It would be a good patch to submit to mainline. Whenever you need to submit a patch, you should send an email to cfe-commits mailing list with the diff attached (See <a href="http://clang.llvm.org/hacking.html">http://clang.llvm.org/hacking.html</a>).</div><div><br></div><div>Thanks,</div><div>Anna.</div><div><br><blockquote type="cite"><div class="gmail_extra"><div class="gmail_quote"><div>to my version of this script.</div><div><br></div><div>Peeter</div></div>
</div>
</blockquote></div><br></body></html>