[cfe-dev] [clang-tidy] scarce documentation and readability-identifier-naming
Gonzalo BG via cfe-dev
cfe-dev at lists.llvm.org
Wed Sep 16 06:40:16 PDT 2015
I see, thanks for the explanation.
I just started toying with clang-tidy today and while setting it up with
CMake as a build system a verbose mode would have helped me a bit. Things
that I would like to see are:
- the path of the '.clang-tidy' file found,
- if there are any unknown checks,
- error on checks='checkA,checkB, checkC' (the whitespace error is too easy
I'm not finished with the setup yet since I still have some problems with
system paths being recognized as project path and with the
HeaderFilterRegex: '...' (I assume it does the same as -header-filter but
that is actually not documented anywhere).
I guess it would also be nice if there was a `-header-remove` option that
takes a regex to remove some headers since mixing regexes for headers to
accept and headers to remove inside -header-filter is messy.
I would not need -header-remove if I would be able to get -isystem headers
removed though. I somehow have the feeling that either clang-tidy decides
on system headers depending on include <> vs include "" (instead of looking
for -I or -isystem in the compilation_database.json) or just finding system
headers in the compilation_database.json is broken.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev