summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/docs/clang-tidy/checks/readability-function-size.rst
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2017-03-01 10:17:32 +0000
committerAlexander Kornienko <alexfh@google.com>2017-03-01 10:17:32 +0000
commit9108644dbf54e4727728ab08c8b7e21bfcd12e8c (patch)
tree8c99253407ef37f69e1a8229c42cccfbd08bd2a7 /clang-tools-extra/docs/clang-tidy/checks/readability-function-size.rst
parenteedf7ec07f40ab17fb8d77ed15ae27a65473856a (diff)
downloadbcm5719-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.rst5
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.
OpenPOWER on IntegriCloud