<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/58325>58325</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-tidy] readability-function-size.VariableThreshold not accept value -1
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
alex-brs
</td>
</tr>
</table>
<pre>
clang-tidy v14 supports `readability-function-size.VariableThreshold` with value `-1` as its default value according to the documentation:
https://releases.llvm.org/14.0.0/tools/clang/tools/extra/docs/clang-tidy/checks/readability-function-size.html
However actually using `-1` results in
```
error: invalid configuration value '-1' for option 'readability-function-size.VariableThreshold'; expected an integer
```
Unfortunately I did not have time to check in the latest version (I attempted using godbolt.org with tidy as an add-on tool but could not get it to work).
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVU8FunDAQ_Rq4WCBsArscOCSKqube9m7wLLgxNrLHm2y_vmNvkm6l9hAJYcZjz7z35jE5dRlnI-1SoVYXduZ3LMR9dx4DK_rGg1Ry0kbjpTpFO6N2tgr6F9Q_pNdyMvBt9RBWZxSdZi8aV3aWJkK6XPG0JwPTVEzBSUaDb1k5z84rbReGjuEKTLk5bmBRpg5Fe8-K5rFo7q_vFXEPtFmIL_R4MCADhNqY81Y7v9Aev6ubuqEPdM4EWjOnmxhe0Utaqc9HOlNOwQrzc8iV_8d2xc3cIvrqXuAMnnhglMZcWAyJzAdp0oTIEnN7e4syb08OwXvnE1dtSRWt2OzsSS_RZxHedRQHKikO7OQ8c3vOUPiZwYhD0T4weN1hRlBMWmqIsID_J6rr-7ulfhitRCB2T0wRPOuQrfIMDPUGaXBZOCqWJ2joaKD5gg9XjMcnJhFh21PTqz6LU5MzmIZ29Uo2HTmEMEmlKrqXBsamiCRGNNeeCyBZKDV8cf65EENdwsj7vusbwftjqcZWDe0gS9RoYCy6h5vxdo_sE1rlfmRO2N-dWvEyejP-bcGFsMepnt1GQbLh21Lt3v0klSnUIURIpuqOrejKdWyHw9AK0Qs5iambh1kMvJsoeRRwHAYojZzAhASfQJd6FI0QvOGCD7xvjnU_8UZ0dJOfYOb9UNw1sEltPn6D0o8ZwxSXQEmjA_75R0oZgl4swHt9GXF1fpQGXqvJhzLjHTPY30ZFWYg">