brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 253e7c4 Raw
51 lines · plain
1.. title:: clang-tidy - readability-function-size2 3readability-function-size4=========================5 6`google-readability-function-size` redirects here as an alias for this check.7 8Checks for large functions based on various metrics.9 10Options11-------12 13.. option:: LineThreshold14 15   Flag functions exceeding this number of lines. The default is `none` (ignore16   the number of lines).17 18.. option:: StatementThreshold19 20   Flag functions exceeding this number of statements. This may differ21   significantly from the number of lines for macro-heavy code. The default is22   `800`.23 24.. option:: BranchThreshold25 26   Flag functions exceeding this number of control statements. The default is27   `none` (ignore the number of branches).28 29.. option:: ParameterThreshold30 31   Flag functions that exceed a specified number of parameters. The default32   is `none` (ignore the number of parameters).33 34.. option:: NestingThreshold35 36    Flag compound statements which create next nesting level after37    `NestingThreshold`. This may differ significantly from the expected value38    for macro-heavy code. The default is `none` (ignore the nesting level).39 40.. option:: VariableThreshold41 42   Flag functions exceeding this number of variables declared in the body.43   The default is `none` (ignore the number of variables).44   Please note that function parameters and variables declared in lambdas,45   GNU Statement Expressions, and nested class inline functions are not counted.46 47.. option:: CountMemberInitAsStmt48 49   When `true`, count class member initializers in constructors as statements.50   Default is `true`.51