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

    <tr>
        <th>Summary</th>
        <td>
            CLANG_CONFIG_FILE_USER_DIR does not provide a way to reference XDG_CONFIG_HOME (or even home directory)
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang:driver
      </td>
    </tr>

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

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

<pre>
    Right now `CLANG_CONFIG_FILE_USER_DIR` is treated as plain path, with no support for environment variables or `~`. To be honest, I don't see how that would be useful if I can't make it reference some user-specific directory.

FWICS llvm has only minimal `~` resolving support in `sys::fs::path::native()` but only when converting POSIX paths to Windows paths. LLDB has more complex `~` resolver but I'm not convinced we want to handle all that.

To be honest, I'd perfectly happy with some semi-magical way of referencing `XDG_CONFIG_HOME` with the usual fallback rules (i.e. fallback to `$HOME/.config`).

CC @spavloff
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx1Ul1vozAQ_DXwsioikEB44KFNml6kXHtq79S-RQYW8NXYyDZw-fe3OFWiXnUI8eH1jmdmp1DVKX_mTWtBqgm8JNwcbh8fjpunx93-4bjbH-6Pv17un4_b_TMVgRuwGpnFCpiBXjAuoWe29aINTNy2hAJm6HulLdRKA8qRayU7lBZGpjkrBBqgAoF56T09A_ipoEBolURjZ5w9VEp6UWrB4Lw-gW2ZhUkNopp3DgbrQQCvaWfJzjs79o7ALWisUaMsEYzq3FZ9Y3osec1LqLjG0ip9Crxw64W35-fudb95ASHGDlrSpKQ4Qccl75i4siRgo8TIZXORR8qpYE7Gi2_prj_ezg33JZnlI3rR2ouyGaIY7Bl9alFCqeSI2s6IP55e9m_ORnJXwSuXlZrMeSGAw2F755h1SiO1db3AP1-YoXb4e3KjoyFYh8_JiAomhImR_wTdMlkJBCaE8_STD1_GQFAV9KhrMo1Yt6zvT-chO28NdvymYw0vyaiJnUDVF_tnVcTtbXtJ0ren746t67ftPJqB-mqiUrDyHfQwB4PM4gEG12XiPCuNlq4_2gUkq-aNW8s-0d9swFuGpmejUHXtY75IkjiOVmG08Ks8rrI4Y77lVmD-_4hT8ojFbF-v1cgrsspJIxrXZP2jaiY9J32kobazMZeYEUV_0CJvre1dOqId3Q05MBQkpKOfOXYfrxs68jc10i83ZkBDH6uULr_NwyJO10kaxliu46yK1qs0y1LG1sWiyJKE-YIVKEzure68KCoFkw2dV2nKn6YFb7X1eR6FURRmi2QRLuPlIkjjNEvKulymRVTFS0buYce4CGYygdKNr3PHqxgaQ0XBjTXXIjOGNxLRnUn4bLCt0nnXKC1PvlOQO_p_AdTeazQ">