<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/131040>131040</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clang-tidy readability-function-size does not check lambda functions
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-tidy
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          bartlettroscoe
      </td>
    </tr>
</table>

<pre>
    While working on extracting function metrics using the `clang-tidy` checks `readability-function-size` and `readability-function-cognitive-complexity`, I noticed that the `readability-function-size` check does not produce any output for lambda functions, but the `readability-function-cognitive-complexity` check does.  It would be nice to be able to get metrics about the number of lines, statements, branches, parameters and variables with lambda functions.

</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx8Uktu4zwMPo28IRLYspM6Cy36_4MAPcGsKYm2NZWlQKLSZk4_kPvEDNqVaYr8HiQxZzcHIiUO_4nDjwYLLzEpjYk9MaeYTaRGR3tTPxfnCZ5ienRhhhiAnjmh4fo3lWDYxQArcXImQ8k1zQuBOLbGY5h37OxNHFswC5nHXPOJ0KJ23vFt94awy-431TIM9ssaE-fg2F1pZ-J68fTsuEIL-T88QIjsDFngBflNwbdMmyCwkXLthUuKthgCDDeIhS-FYYoJPK7a4rvTXMl0-Z7hC52fGPcADwxPsXgLmiA4Q8Cxhqj9Fs7E71NFHV8ZQ1k1JYgTeBdoE5MZmVYK_CItYTDLy8sFE67ElPI21SsmV9EzPDle_jG2F-19Y1VvT_0JG1Ld3dCN3TiMXbMo08teYnvUA95N4wnb0zjaQ3_sD3g6jPbYOCVbeWj7Tkopx7bb49hN9tjZobubBsJJDC2t6Pze--u6j2luXM6FVNd37dA2HjX5vJ2jlJ8OR8p6nknVrp0ucxZD613m_IHDjj2pjx74cusfy37ZxN8jaEryamG-ZNHfC3kW8jw7Xorem7gKea6Ur5_dJcVfZFjI8-YjC3l-tXJV8k8AAAD__5WiKfM">