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

    <tr>
        <th>Summary</th>
        <td>
            clangd relative path to static index
        </td>
    </tr>

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

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

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

<pre>
    I would like to make use of the static index for clangd, because we have a rather big codebase. the background indexer is way to slow and can take hours. RPC is no option. with every integration we would create an static index and release it to the developers. 

I already could build the index properly, but now the question is how to use the index properly. In the docs there is only described how it can be used from .clangd configuration file:

```
Index:
  External:
    File: /abs/path/to/an/index.idx
````

But absolute paths are only possible if environment variables can be used to determine the correct path. Another solution would be a relative path. The problem here is that the absolute path is different for each developer.

Can someone please give me a hint how this can be solved nicely?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxlU8mSmzAQ_Rq4dIXCsrHNgcMscdXcUqn8gJYGlBGSIwkvf5-W8MzYSRUlhJa3dD-EU9fuDc5uNgqMfkeIDiZO7zkguB7iiBAij1qCtgov0DsP0nA7qIK9gEDJ08kzwshPCBw8pysehB5AOoWCB6wyiuDyffButmpBokM6wJlfE2Uw7gyctiS3EBP_6GYfKvj54yUdsw7cMWpnKzjrOAKe0F8JJ-JAhLSeFCwupEceSYl91J3APRokPaBj4kyiFAEZd8REVdSvRf20jG_ADeGoK5lIoGLWNKYbC9rRp0vmmmswR9J3zrt_ZgxZDmke05rLhfz_YgVvdlHgZEgTj-mOs-ZKooL0WqDKECQ2FUXklijovZugWjpA4myvh_lWgl4bLNZP9z6KbX17FltJw-cRgO-XiN5yc7cEcFhgoGAHLgKNR2opvaJLK5aGbKXS6vIvyQfPMj5TYQjBmZn6kUACcLKZPR5dCFoYMt0D2pP2zk5oI5y415zWw4NpKqNCkjppuxRTOu9RxoxawZN1OXSZKodhaVrOIxqqzglvR3_RZeoBMUzwUfQ48phRH8SmHaX7ng6RrhR75HL8Skx1b_Ulxc1N6EjfcQnZkEinJGGknC5pGPWnL2I6kTOrJVKM1ocSu9V2u2rqertpS9WtVbtueRl1NNjd2v3gJf82dwkvZ2-6McZjSN1kB3oG-lVmUUk30Ycxp4_XN6rAbypfamUIFFmaNLv1ri3HTrJ2L3u5EkI1uKtbKZsN27P9qm3Zfr1ipeECTeiK5rlgzCIFNEHQvGheS92xmrF6z7b1rtmxtmql4ihXUnCxrZvNutjUOHFtqqSjcn4ofZcliXkItGl0iOFrk1NKBouY6Qifz3F0vrs446YyE3dZ-F8vEp1u">