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

    <tr>
        <th>Summary</th>
        <td>
            [libc] Enable linting by default in libc
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            code-cleanup,
            libc,
            new issue
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          michaelrj-google
      </td>
    </tr>
</table>

<pre>
    Issues that could be caught by the linter are causing issues for real-world users, so finishing the linting work needs to be a priority.

Steps:
First we need to make sure that our lint rules are complete and include fix-it annotations so they can be applied automatically (e.g. https://reviews.llvm.org/D157164)

Second we need to apply these lint rules to clean up the existing code, the individual parts are tracked by these issues: #60984 #61076 #61078

Third we need to make sure the lint bot (https://lab.llvm.org/staging/#/builders/242) is cycling green, then move it out of staging.

Fourth we need to make sure that clang-tidy runs by default (possibly only runtimes builds?) to help avoid regressions. Additionally we need to raise awareness of this with existing libc developers.

Additionally it would be optimal to have a presubmit lint check instead of just postsubmit.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8lMGS4jgMhp_GXFRQwQnQOXCYnV6q9rz7Ao4tEnU7dsqSYXj7LRt6Gg67F3ASW_r065cNM40B8ah2f6jd-8pkmWI6zmQngz59rMcYR4-rIbrb8S_mjAwyGQEbs3cwIFiTx0lguIFMCJ6CYAKT6gemMALdT51jgoTGr68xeQeZMbHSP4EjnCkQT2XvV4iyvsb0CQHRMUgsmQwsiWIiuW1U866aH_ffvwUXVu3j6USJBa5YT5aDs_lE4Jzwzh1zqhkgZY98B43z4lEQTHBAwfrsEM70a00CJoQoRigGLqQy4Q2sCRVnWTyhA5MlzkbIGu9voPQbbsYNTCJ3Kn1S-pTwQnjljfeXeRPTqPTpfbs7bPed0v1LMWhjcM_8JU3VlvEZXCJYjyZAXqpq-Iu4ymajw6JreUnB0YVcNh4Wk-ReriRjP9E9Osb4aJBqf4DS7b7p37q62DaH_dfi7Znxn4mS-y-JH5BDlCLFqwreDM8KsJiRwli_tUqfhkzeVVecdKeV7oEY7M36UtaYEMOjrgBzvCBQ6aZAPMMj0ostTjEnmf7HCdabMK6F3A1SDlz0cHg22VfyJTLT4G8Qg68bhGZkqIys2lPBkwgT-gXMJZKDhGNC5mKVDfxwjoprqieeGJIhRjBXkzAgc4GXiRiuJNN3Dz0NFhxe0McFE7_U9RKZBK5fgxgXodn4SmUu93FBzsNMcu-JndB-AgUWNK5k_sgssESW-67Nyh1b17e9WeFxu--7rX7TXbeajk1rsbGH89nZ7dbpdmcG0_e7fdP2ttkP_YqOutFt0zcH3W6brttsu0PTdu3BDK7rzvimugZnQ_53_1fVdcf9bt93K28G9FzvIK2LgdfV23lRWiv9U2ldFPn9EPB6N215s3tfpWOJuh7yyKprPLF8T9pKSHy93mqI3Tv8Gczgv6-Zp7ZTqMqvcvLHV-eOJFMeNjbOxcb-8vW3XlL8QCtKnx5TpE-1pH8DAAD__5OAzCM">