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

    <tr>
        <th>Summary</th>
        <td>
            [clangd] IncludeCleaner missing includes inserts a different path than header-insertion
        </td>
    </tr>

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

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

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

<pre>
    Basically, when I accept "add missing include" from the suggested fixes for IncludeCleaner, clangd inserts headers with various paths:

- just the filename (`header.hpp`)
- the full path from my desktop (with `/home/tor.shepherd/root-dir/relative-path/header.hpp`)

However, header-insertion on autocomplete consistently produces the correct path (`relative-path/header.hpp`) according to my codebase's guidelines.

(Note, both utilities produce the correct headers for stdlib includes, except IncludeCleaner produces a full path to the actual header file for `using namespace std::chrono_literals;` and autocomplete doesn't add any include for this; I would expect <chrono> to be added)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyEU0GO4zYQfA11IWzQlCzbBx12ZiJkLvlCQJFtkRuKFNjN8fj3ASk7u7MJkItsQN3VVaoqhejmADCw4ws7vjUqk41poJjQwmohmWaK5j68KHRaeX9n8pXfLAT-zpXWsBJnUipj-OIQXZi5C9pnA0xKfk1x4WSBY55nQALDr-4TkF9j4u_b3KsHFSAVWO1VmA13ASERcgvKQEJ-c2T5h0ouZuSrIous_cbEGxOP545_z0j10NV5CGoBzuSZ9WKD2Nt1Zb1g8vKcr6PZ-wq30Vzu3AD-RXEtu_Vm3RltXIDJkWLaPz8Jk2OKkXbGpfIXvCL3AbsCVhb-8-j2_D3e4GNTu43tNrUuBh4DV5mijsvqgYDrGNAhQSB_52uKJmvASl3HlEDTxn5T-n8kilkxmWIQxSJWRwOTQmDyhHzOzoB3AXD_M1smz39EgsJ2imR5JucdOcAnnS9snn4Vc5GMd9MzC1gQ4LOm5avtP3SpnwyhWIGVpqz8A7daW7FZL3JNWjEaV6WhnCuZaL9pm2KIf3pHkJRH1r6wXnAVzNdPayJgYPJEvCRXhfuTaT1A1pVN_s5vMXvD4XMt-lj7usGz9rdCcYKyDYbJS2OG1lzai2pgOJzEqev6gzg0dhD9-SjPBrrz1F8uWk7dQbdnIa4H3U7d8dS4QQrZCSkuQrZHIfanqROXXvZdL44nUC3rBCzK-b33H8s-prlxiBmG80Eejo1XE3is5ZUywI3Xl0zK0uU0lJ3dlGdknfAOCX-gkCNfW7-1jh3ffrXml0LjP8VU3LjrFRKERwTJqvCvPDc5-cESrbWucmRynB3ZPO11XJgcC5PHz25N8TtoYnKs_JHJser7OwAA___p9I4w">