<div dir="ltr">It is definitely there for the latest build, checked by running:<div><br><div><font face="courier new, monospace">$ ./bin/clang-tidy -checks='*' -list-checks | grep isolate<br></font></div><div><font face="courier new, monospace">    readability-isolate-declaration</font><br></div></div><div><font face="courier new, monospace"><br></font></div><div><font face="arial, sans-serif">Are you using a fresh build of clang-tidy? The check was added in </font>r345735 in October 2018, it's possible that some package managers still have a version built before that revision.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 21, 2019 at 11:16 AM Ravi Koppad <<a href="mailto:rpp6kor@gmail.com">rpp6kor@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello lyla,<div><br></div><div>Good morning.</div><div>I tried the suggested way, but it does not work. It gives the same error no checks enabled.</div><div><br></div><div>When I tried using command:</div><div>clang-tidy -checks=* -list-checks</div><div><br></div><div>The required rule is not listed in the rule set. But the document says the rule is available. Could you please let me know how to add the rule to the enabled set.</div><div><br></div><div>Regards,</div><div>Ravi..<br><br>On Wednesday, June 19, 2019, Ilya Biryukov <<a href="mailto:ibiryukov@google.com" target="_blank">ibiryukov@google.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Ravi,<div><br></div><div>the syntax seems correct, but you want to remove spaces and possibly add quotes to ensure no shell substitutions are taking place.</div><div><div>  clang-tidy -checks='-*,readability-isolate-declaration' /some/dir/foo.cpp</div><div>should do the trick.</div><div><br></div></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 19, 2019 at 5:45 PM Ravi Koppad via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Team,<div><br></div><div>I want to test the readability-isolate-declaration rule for clang-tidy but the mentioned rule is not enabled.</div><div><br></div><div>Command format used to run the rule:</div><div>clang-tidy -checks=-* , readability-isolate-declaration</div><div><br></div><div>But this gives Error : no checks enabled.</div><div><br></div><div>When I tried going through the official documentation of clang-tidy this rule is available. Kindly could some one suggest on how to enable the above mentioned rule.</div><div><br></div><div>Regards,</div><div>Ravi..</div><div><br></div><div><br></div>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div>Regards,</div><div>Ilya Biryukov</div></div></div></div></div>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Regards,</div><div>Ilya Biryukov</div></div></div></div></div>