<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">If you run scan-build without an options, it will give you a summary of possible command line options.  The most relevant for your question are:<div><br></div><div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000">CONTROLLING CHECKERS:</font></div><div><font class="Apple-style-span" color="#000000"><br></font></div><div><font class="Apple-style-span" color="#000000"> A default group of checkers are always run unless explicitly disabled.</font></div><div><font class="Apple-style-span" color="#000000"> Checkers may be enabled/disabled using the following options:</font></div><div><font class="Apple-style-span" color="#000000"><br></font></div><div><font class="Apple-style-span" color="#000000"> -enable-checker [checker name]</font></div><div><font class="Apple-style-span" color="#000000"> -disable-checker [checker name]</font></div><div><br></div></blockquote></div><div><br></div><div>None of the "experimental" checkers are *listed* under AVAILABLE CHECKERS, but you can still enable them.</div><div><br><div><div>On Apr 26, 2011, at 3:18 PM, Liang Qi wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi, Ted,<br><br>Thanks a lot. I got this output for my dummy project,<br><a href="http://pastebin.com/egyx90t3">http://pastebin.com/egyx90t3</a><br><br>Yes, I also set this env:<br>export CCC_CXX="clang++"<br><br>And could you do me a favor once more? How could I enable the checker<br>for "cplusplus.experimental.Iterators" in this scan-build/cmake<br>context?<br><br>Best Regards,<br>Liang<br><br>On 26 April 2011 23:03, Ted Kremenek <kremenek@apple.com> wrote:<br><blockquote type="cite">Example of running it on the LLVM codebase:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">$ mkdir llvm-cmake<br></blockquote><blockquote type="cite">$ cd llvm-cmake<br></blockquote><blockquote type="cite">$ scan-build cmake -G "Unix Makefiles" ~/llvm<br></blockquote><blockquote type="cite">...<br></blockquote><blockquote type="cite">$ scan-build make<br></blockquote><br>-- <br>http://www.qiliang.net<br></div></blockquote></div><br></div></body></html>