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

    <tr>
        <th>Summary</th>
        <td>
            Clang-format might cause compilation errors if a local library header is included with angle brackets 
        </td>
    </tr>

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

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

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

<pre>
    The code excerpt below compiles. But if I run clang-format on it, clang-format reorders these include definitions, causing some compilation errors. These compilation errors happen because glad.h redefines some macros
```
#include <glad/glad.h>
#include <GLFW/glfw3.h>
```
If I instead write it like below, the code compiles properly because clang-format does not reorder in this case.
```
#include "glad/glad.h"
#include <GLFW/glfw3.h>
```

This issue is somewhat related to the issue https://github.com/llvm/llvm-project/issues/53013
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJylUk1v2zAM_TX2haghS7OTHHxY02UosGOAnWWJtrUokiHJy_LvR9tN16ADCmyAPyCRfOR7j63X1-Y4ICivEfCXwjAmaNH6C12dR2MxFvA4JTAdPEOYHCgrXf_Q-XCWCbwDkzK-v78N6IPGECENGBGMU3YieI2dcSYZ7-JSIqdoXA_Rn_GlmZyDgCH4QG2PS_X7CAxyHNHRmDMEQm-lLgbqujTAuCKepQo-ZuwpY5-zmr0865GL20yZ2M_lGT-sKJn48recr98O35ec7iLeJt3jPs8aGRcTSg2XYBJxT2DNCVdJZ9bpJvZNXhiDHzHY6yufOy21pxTnX0UlfMIwkeSLWHxIj_N7epz_O731e5ybmxgnIrdKfRkWz8kj1JD8QnFNGFIaYyao22GGN2mY2oKI08Han7ffAynwAxXt0WEpo-04VIKVIsemrOuq4oxXda4boXdiJ_NkksVm_1als-mHBC_yvV8YWl4J1itpyY02yHCFgTya1Yy39STHaD4gUEt2BalOmCLkU7DNf9DYCsbyodlqrTZlp3HHpNiIWomqrbZKbXXd0bvJraQNiU1WPZJFDi-rgLNd1VNuGlKAl6wsOROsqgu9EVyyjdhVrGy7VmSfGJ6lscU8R-FDn4dmGamd-khBa2KKf4IyRtM7xKUd4cspDT402ofplMz8WBnyZYJmYfAbjYVbqA">