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

Alexander Kornienko via cfe-dev cfe-dev at lists.llvm.org
Wed Sep 16 06:25:52 PDT 2015


On Wed, Sep 16, 2015 at 11: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.
>

It's an interesting interpretation, but the truth is somewhat more boring.
>From http://www.yaml.org/spec/1.2/spec.html#id2760395:

YAML uses three dashes (“---”) to separate directives from document
content. This also serves to signal the start of a document if no
directives are present. *Three dots ( “...”) indicate the end of a document
without starting a new one*, for use in communication channels.


I tried to make the help message for -dump-config better in r247792. Please
tell me, if you have other suggestions on how to make this more usable.


> 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/5d429a94/attachment.html>


More information about the cfe-dev mailing list