summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/docs/clang-tidy/checks/readability-function-size.rst
blob: cab13986b019de3848b68537f94f9cfa2c888b7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.. title:: clang-tidy - readability-function-size

readability-function-size
=========================

`google-readability-function-size` redirects here as an alias for this check.

Checks for large functions based on various metrics.

These options are supported:

  * :option:`LineThreshold` - flag functions exceeding this number of lines. The
    default is `-1` (ignore the number of lines).
  * :option:`StatementThreshold` - flag functions exceeding this number of
    statements. This may differ significantly from the number of lines for
    macro-heavy code. The default is `800`.
  * :option:`BranchThreshold` - flag functions exceeding this number of control
    statements. The default is `-1` (ignore the number of branches).
OpenPOWER on IntegriCloud