<div dir="ltr">As described in the documentation (<a href="http://clang.llvm.org/extra/clang-tidy/index.html">http://clang.llvm.org/extra/clang-tidy/index.html</a>, also clang-tidy -help), you can use the "Checks" option in the .clang-tidy file to disable or enable any set of checks. E.g. to disable clang-analyzer-cplusplus.NewDelete you can use a .clang-tidy file with this line:<div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>Checks: "-clang-analyzer-cplusplus.NewDelete"</div></blockquote><div><div class="gmail_extra"><br></div><div class="gmail_extra">It will instruct clang-tidy to use the default set of checks with that specific check disabled.</div><div class="gmail_extra"><br></div><div class="gmail_extra">-- Alex</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 4, 2015 at 11:07 PM, Paul Hoad via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><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 dir="ltr">cfe-dev's <div><br></div><div>I have an example where I think [clang-analyzer-cplusplus.NewDelete] is reporting a false positive.<div><br></div><div>While I would like to prove that point, I need to spend some time making a much smaller reproducible test case</div><div><br></div><div>In the meantime, Is it possible for me to disable an individual rule via the .clang-tidy file without disabling them all and then re-enabling all but the one I want?</div><span class=""><font color="#888888"><div><br></div><div>Paul</div></font></span></div></div>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><div><br></div>
</div></div></div>