[cfe-dev] Configure clang-tidy rules

Ilya Biryukov via cfe-dev cfe-dev at lists.llvm.org
Wed Jun 19 08:48:23 PDT 2019


Hi Ravi,

the syntax seems correct, but you want to remove spaces and possibly add
quotes to ensure no shell substitutions are taking place.
  clang-tidy -checks='-*,readability-isolate-declaration' /some/dir/foo.cpp
should do the trick.



On Wed, Jun 19, 2019 at 5:45 PM Ravi Koppad via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> Hello Team,
>
> I want to test the readability-isolate-declaration rule for clang-tidy but
> the mentioned rule is not enabled.
>
> Command format used to run the rule:
> clang-tidy -checks=-* , readability-isolate-declaration
>
> But this gives Error : no checks enabled.
>
> 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.
>
> Regards,
> Ravi..
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>


-- 
Regards,
Ilya Biryukov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190619/19e5f9b2/attachment.html>


More information about the cfe-dev mailing list