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

    <tr>
        <th>Summary</th>
        <td>
            Please stop reporting clang-format errors in test directories
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            infrastructure
      </td>
    </tr>

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

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

<pre>
    The precommit CI pipeline reports clang-format errors, which is incredibly useful. However, it reports them in test files, which renders the functionality effectively useless because we've never enforced coding style in tests and so those false positive reports typically swamp the true positive issues.

Further, we now have people trying to add clang-format tags to the test files to work around this, which adds additional burden on reviewers to mention that these comments are distracting and unnecessary because tests aren't required to be formatted. (We should probably document this better in the coding style guide, but this has been the status quo for ages because test files often exceed 80 col limits when verifying diagnostics, we almost never follow the capitalization and indentation schemes, etc.

Can the precommit CI pipeline please stop reporting clang-format issues in tests?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyFU8tu2zAQ_Br5soghy3asHHTIA0F766FAzytyJW1LkQofdt2v71JynBgoUMCmRHEfszPD1ulz830gmDwpN44c4fkrTDyRYUvgaXI-BlAGbX_XOT9iBPLe-VBUz3AaWA3AAdgqT5pbc4YUqEtmDV_ciY7kc5gUfS8UBxolGiKFCB0b-lTHk9Xk5xjoklWRnUXD8QzUdSTbIy31JStASwrlHU5UVIcjgc3dgKyAVKRBOc22hxDPht4bBkCrITjp4CSzQyPr5ALn0h8QzxMrNNIqnHCcZjjRp0-RHEKisC7Kl6J8XNbX5CVunvYkWNwJBpTIidxkcvo5g4kOUOtbMiP2IR_MXa6k5C8n538BepcEcxz4E1FSJOSFF4agTV6TBWdlhiPTaSbRwUg2B0hy7jOQDJsllq-S7Qk0h-hReBVomZhkLSmhFv35yu6FNpFGWM4yviUWpXP5VhicZ4ik11BU9Q-CMLhktJjJtZjNoJ1KueE8gGRIrJ_VGOhWoT6xpjxhmy7BA-YEWmJDxJgCvCWXewL2FG4gXlhzXZQE-q1IINaltDBgWEwdhDk5EYdwN0uhGXvrQmQVLpqhGWV_sVHnjBENZ5g4cRQb_sGZzEwUi09tXPZBiaMXF1NUN554xgX8v6-W-AJDnsxNF-tlXDfeWHx2dW-xfV3pZqsftg-4ihwNNd_-X2S5rdc7p0U-FZ1nCqvkTTPEOEnlx6J6lV_PcUjtWuDKxpjj--NOFP0pebJdQMnLfv9QV6uh2exxg5tO1Q_bXbtV-xblr_Wh3FXUdrt6ZbAlE5pi_1RUFdvOo_guqZi8KF4V-5cVN1VZVeX9ptzU27q8Xx_0rmzbeiOzdofdlopdSSOyWWcwa-f7lW9mXG3qgxwasXL4OMQQuLdEc0-pj0luvG8e5TbZJ7naI9rVPEczD_EXzw3MCw">