diff options
| author | Alexander Kornienko <alexfh@google.com> | 2017-03-01 10:17:32 +0000 |
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2017-03-01 10:17:32 +0000 |
| commit | 9108644dbf54e4727728ab08c8b7e21bfcd12e8c (patch) | |
| tree | 8c99253407ef37f69e1a8229c42cccfbd08bd2a7 /clang-tools-extra/docs/clang-tidy/checks/readability-function-size.rst | |
| parent | eedf7ec07f40ab17fb8d77ed15ae27a65473856a (diff) | |
| download | bcm5719-llvm-9108644dbf54e4727728ab08c8b7e21bfcd12e8c.tar.gz bcm5719-llvm-9108644dbf54e4727728ab08c8b7e21bfcd12e8c.zip | |
[clang-tidy] Add parametercount for readibility-function-size
Summary:
Add an option to function-size to warn about high parameter counts.
This might be relevant for cppcoreguidelines and the safety module as well. Since the safety module is not landed in master already, i did not create an alias, but that can be done later as well.
Reviewers: sbenza, alexfh, hokein
Reviewed By: alexfh, hokein
Subscribers: JDevlieghere
Patch by Jonas Toth!
Differential Revision: https://reviews.llvm.org/D29561
llvm-svn: 296599
Diffstat (limited to 'clang-tools-extra/docs/clang-tidy/checks/readability-function-size.rst')
| -rw-r--r-- | clang-tools-extra/docs/clang-tidy/checks/readability-function-size.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-function-size.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-function-size.rst index fbefa971987..ecb3cde7d62 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/readability-function-size.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-function-size.rst @@ -25,3 +25,8 @@ Options Flag functions exceeding this number of control statements. The default is `-1` (ignore the number of branches). + +.. option:: ParameterThreshold + + Flag functions that exceed a specified number of parameters. The default + is 6. |

