[cfe-dev] [clang-tidy] scarce documentation and readability-identifier-naming

don hinton via cfe-dev cfe-dev at lists.llvm.org
Wed Sep 16 03:03:34 PDT 2015

Try passing the specific check, or all, i.e., *, to -checks when you
-dump-config.  For example,

$ clang-tidy -checks=*naming -dump-config
  - key:             readability-identifier-naming.AbstractClassCase
    value:           aNy_CasE
  - key:             readability-identifier-naming.AbstractClassPrefix
    value:           ''
  - key:             readability-identifier-naming.AbstractClassSuffix
    value:           ''
  - key:             readability-identifier-naming.ClassCase
    value:           aNy_CasE

On Wed, Sep 16, 2015 at 5:15 AM, Gonzalo BG via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> Dear all,
> I'm trying to set up clang-tidy's readability-identifier-naming for a
> project but the docs of clang-tidy are in general very scarce (a couple of
> example .clang-tidy files would definitely help).
> In particular I cannot figure out how to set up the "CaseType" option of
> the readability-identifier-naming check. Any Ideas? I've tried
> CheckOptions:
>   - key:             readability-identifier-naming.CaseType
>     value:           'lower_case'
> without any luck.
> I've also tried to dump the config using "-dump-config" to see all the
> knobs clang-tidy has but after a couple of lines I get "..." which I guess
> means that the rest of the options are not shown maybe because the list is
> too long. Is there a way to get all the options of all the checks
> clang-tidy has?
> Best regards,
> Gonzalo
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150916/e04d67c3/attachment.html>

More information about the cfe-dev mailing list