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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] regional style options
        </td>
    </tr>

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

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

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

<pre>
    We already have a way to control clang-format from within the code itself:

```
// clang-format off
// clang-format on
```

Which disable all formatting. This is a very big hammer, sometimes I just want to disable certain formatting options, or just change how something is formatted for a chunk of code.

I think it would be nice if we can specify clang-format style options in code annotations.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx0ks2K4zoQhZ9G3hRtFNnKz8KL3NsEej_Q67JctqpbloIkx_jtBzsJ0xkYKJCQ6hy-Kg6mxIMnaoT-T-j3AqdsQ2yWZCcu2tAtzScBukjYLWDxRoAw4wI5gAk-x-DAOPTDWx_iiBn6GEaYOVv2kC2BCR0B50SuF9VZyK328lHyLNRFqMurR-j7f_34v-Xy_GnZWOg4YetWVAf35sx-KOGX5QScAOFGcYGWB7A4jhSF-h9SGCnzSAk-4GtKGWb0eR3t6WYoZmT_wxHCNXPwaZWHeFcZi34gsGG-O9q1j9NTRd16AwRjJ_8Nod-WUt7pP2Bt_wbOMIfJddASeDYE3MNMYNBDupLhfnndRMqLoycMsL8vGr0PGbe3suiaqjtVJyyo2R203p9OR1UVttGHXpuOjnXXSuwPEumoqp1Rsjp1Ulaq4EZJpeVRyV2tqlqVsj3Wckemlr2W2lSiljQiu9K521iGOBSc0kTNTte63hcOW3JpS5RSP6mFUmvGYrPq3tppSKKWjlNOf5wyZ7el8UWo3yHSwMGjex29mKJrbM7XtMZri8zA2U5tacIo1GX1fRxv1xi-yGShLhtuEuryIL416ncAAAD__8DeAgE">