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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format]: Regex for IncludeCategories needs to be listed in order they should be run
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    After trying a few times, I understood that regex for IncludeCategories is run in the order they are listed, they are not run in the order priority specifies, priority simply points out the order in which final files should be sorted. 

I think this is the correct behavior & useful way but clang-format's docs don't provide any explanation of the same. It would be good if this was explicitly explained in the docs.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx9Us2OozAMfhq4WINogHZ64NCd0Ui97hsE4oCnIUFJaIe3X4dut7NaaSVkcGJ_PzadU2t70hE9RL-SHUCCxhtEmjBk4g3OsFiFPkTnFMRRRvA44Bdo5-Fse7MofJMRB-cJA1AAv1ggy6UIzquEO-IK0iMYChFVAv1zZF38t2H2xGhxhTBjT5ruQp6nNM1mhdmRjQHcEr-1Ms5tpH4ETVYajoZFhdEtRkGHEJxnBQVk5XtWnu7xzO1kLylu-hNY77zHPnLLKK9MC5nYwxJQLwZucoWOSXsj7fDCY5hkzMQhgHJ9CpaTyGrdlRSCtCvg18y1MpKz4PRGEOSEBZwj3B7ShjRf0ncZNxm2Luopmt8AZFE95pSoily1lTpWR5lHrsI2a378pal5z6oT_PzPtiyiYsMu8d-Xkwi-be05OV5SvnjTjjHOgXEz8cHPQHFcuqJ3EyfGXB-vF7b_yQPklEJY0gI_mqZqXvOxLeud0vWh3usKjzusDqjrXulKHxoUh67KjezQhGQnE8Lyv7hB8Dc7yqkVpRBlUx53r_W-ORZd3ahD33W92AtVV_usLnGSZIqko3B-yH27SeqWIfBl8hmelzIEGngOGx3jyyWOzrezR4wUxou8XKTPNwXt5uAX-LEakA">