<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Thomas,<div><br></div><div>I am not aware of anyone else using scan-build with plugin checkers. I think the best way to implement this would be to add command line options to scan-build to specify the plugins and have scan-build pass those on to c++-analyzer. This is how other flags are supported, for example, see "<span class="Apple-style-span" style="color: rgb(0, 68, 252); font-family: Monaco; font-size: 11px; "><span style="color: #c0330a">-</span></span><span class="Apple-style-span" style="color: rgb(0, 68, 252); font-family: Monaco; font-size: 11px; "><span style="color: #000000">enable</span></span><span class="Apple-style-span" style="color: rgb(0, 68, 252); font-family: Monaco; font-size: 11px; "><span style="color: #c0330a">-</span></span><span class="Apple-style-span" style="color: rgb(0, 68, 252); font-family: Monaco; font-size: 11px; "><span style="text-decoration: underline">checker</span></span>". Would be great if you submit the patch for this to the open source codebase!</div><div><br></div><div>Cheers,</div><div>Anna.</div><div><br></div><div><br><div><div>On May 16, 2012, at 5:49 AM, Thomas Hauth wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hello,<br>we implemented some custom clang Static Analyzer checkers for our needs <br>and compiled them as external modules.<br><br>When calling clang directly, one can use "-Xclang" to pass the command <br>to load and run the checkers:<br><br>clang++ -Xclang -load -Xclang ./MainCallChecker.so -Xclang <br>-analyzer-checker=example.MainCallChecker --analyze global_static.cpp<br><br>This variant works fine.<br><br>Is there a way, to still load the custom plugins when using the <br>scan-build tool on regular make files?<br><br>As a workaround, I implemented a new environment variable named <br>"CCC_ANALYZER_PLUGINS" which is read by the c++-analyzer script and used <br>to pass the plugins to load to the clang call.<br><br><br>Thanks,<br>Thomas<span class="Apple-tab-span" style="white-space:pre">        </span><br>_______________________________________________<br>cfe-dev mailing list<br><a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev<br></div></blockquote></div><br></div><div><br></div></body></html>