<div dir="ltr"><div>Hi!<br><br></div>I have a similar problem. I use scan-build and I'm testing a new checker but I got warnings from other checks which I did not explicitly enabled (like warning: Division by zero). <br>
<br><div><div>I use this command:<br>scan-build --use-analyzer /clang33/build/bin/clang -enable-checker cc.NewChecker -o ./CheckerResults make<br><br>Do I have to disable all the default checks? I tried to get the list of the default checkers (scan-build --help-checkers) but the list is empty and I still got the warnings from the other default checkers.<br>
<br></div><div>I'd like to get only the warnings created by the enabled checker. Did I miss something from the command line?<br><br></div><div>Thanks!<br></div><div>George<br></div></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sat, Jun 22, 2013 at 2:15 AM, Anna Zaks <span dir="ltr"><<a href="mailto:ganna@apple.com" target="_blank">ganna@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Todd, <div><br><div>What is your complete command line? Are you calling scan-build or clang?</div><div><br></div><div>Anna.<br><div><div><div class="h5"><div>On Jun 21, 2013, at 11:40 AM, Todd Nowacki <<a href="mailto:nowacki724@gmail.com" target="_blank">nowacki724@gmail.com</a>> wrote:</div>
<br></div></div><blockquote type="cite"><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div><div class="h5"><div dir="ltr">Is there any way to turn off specific checkers for the static analyzer?<div>
<br></div><div>I tried just adding one checker, e.g. -analyze-checker=core.DivideZero, but </div><div>the following set of checkers still seems to be implicitly enabled:</div><div><div>'core'</div><div>'unix'</div>
<div>'deadcode'</div><div>'security.insecureAPI.UncheckedReturn'</div><div>'security.insecureAPI.getpw'</div><div>'security.insecureAPI.gets'</div><div>'security.insecureAPI.mktemp'</div>
<div>'security.insecureAPI.mkstemp'</div><div>'security.insecureAPI.vfork'</div><div><br></div><div>Thanks!</div><div><br></div><div>Sincerely,</div><div>Todd Nowacki</div><div><br></div></div></div></div>
</div>_______________________________________________<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></div>
</blockquote></div><br></div></div></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>