llvm-project/clang-tools-extra/docs/clang-tidy
Nathan c3d20fd472 [clang-tidy] readability-identifier-naming disregards parameters restrictions on main like functions
Summary:
Typically most main functions have the signature:
```
int main(int argc, char *argv[])
```
To stick with convention when renaming parameters we should ignore the `argc` and `argv` names even if the parameter style says they should be renamed. This patch addresses this by checking all ParmVarDecls if they form part of a function with a signature that matches main `int name(int argc, char * argv[], (optional char *env[]))`

Reviewers: aaron.ballman, JonasToth, alexfh, hokein

Reviewed By: aaron.ballman

Subscribers: Mordante, merge_guards_bot, xazax.hun, kristof.beyls, cfe-commits

Tags: #clang, #clang-tools-extra

Differential Revision: https://reviews.llvm.org/D73098
2020-01-27 23:47:51 +00:00
..
checks [clang-tidy] readability-identifier-naming disregards parameters restrictions on main like functions 2020-01-27 23:47:51 +00:00
Contributing.rst [docs] Update path to clang-tools-extra 2020-01-02 19:30:29 +08:00
Integrations.rst [clang-tidy] Update documentation for Qt Creator integration. 2019-06-25 13:50:09 +00:00
index.rst doc: Document that extra-arg/extra-arg-before can be used several times 2019-12-24 13:07:08 +01:00