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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] Add Enable/disable policy to all rules
        </td>
    </tr>

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

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

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

<pre>
    Hi,

we would like to start to use clang-format in our old project, but only to apply some rules.

We have seen that some rules comes with an "Enable: [true,false]" option, but not all of them.

As a result, it is not possible to use clang-format to apply only some rules.

Would this be a big development to add an "Enable" variable to every rules?

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0ksFu4zwMhJ9GvhANZDp2moMPafMb_xvsmbKYWLu0ZYhyirz9InbbbYHdi6SDZoYfMaQarhNza-oXU58LWvIQU8sp9P1QFi76e_t_MPhq7NnY03a-MbzFRTxI-MWQI2imlB-PRRl6oen6dIlppAxhgrgkiOJhTvEn99ngK7glQ5zk_pDQPMsdNI4MaRHW3dekHwwD3RiUeYI8UP7yEfo4ssJbyAPQBAbxv4mcsKlOYOqXnBY2-HohUTb12SBCnHOI08cAU8xAIhAvkAcev-WeFAgS6yLrvCFD0FUwR9XghP8K-0mzsv0Lad1cHoKCYyBw4QqebyxxHnnaTLz_ToQIN0qB3oP5xum-WZuq22wL31b-WB2p4LY8WFvbfVPaYmgvTd84rulY-d7uqfF4fL40tT-wdWRdU4QWLVZlibZ8xqqyO-aDq0ry5JujtRWaveWRguxEbuMupmsRVBduD_h8PBRCjkXX_iB-XYdBfDQqtQ_Zk1uuavZWgmb9Y5RDlrV734T1GU7ewwd854Ou6HOU0G-lEdn4iyVJO-Q8q6lOBjuD3TXkYXG7Po4Gu0fS-_X0WcBunV8NdivC7wAAAP__3Sr7Ng">