<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;"><div>The analyzer assumes that the checkers from the core package always run, so it is not advisable to turn those off.</div><div><br></div><div>Currently, the only way to disable checkers is to list all the ones you are disabling. You should be able to disable the whole packages of checkers, which would make this simpler.</div><div><br></div><div>Anna.<br><div><div>On Aug 13, 2013, at 9:02 AM, Orbán György <<a href="mailto:o.gyorgy@gmail.com">o.gyorgy@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><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></div></blockquote><div><br></div>To see the list of all analyzer checkers you can use:</div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">clang -cc1 -analyzer-checker-help</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br></div></div><div><blockquote type="cite" dir="auto"><div dir="ltr"><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>
</blockquote></div><br></div></body></html>