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

    <tr>
        <th>Summary</th>
        <td>
            Clang tools interpret all backslashes as directory seperators
        </td>
    </tr>

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

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

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

<pre>
    Clang tools such as `clang-check` interpret backslashes as directory separators on systems that only use forward slashes, such as on Linux.

For example, if `a\b` is passed to a clang tool, it interprets the path as `a/b` as seen below.
```
$ touch 'a\b'
$ file 'a\b'
a\b: empty
$ clang-check 'a\b'
Error while trying to load a compilation database:
Could not auto-detect compilation database for file "a\b"
No compilation database found in /tmp/a or any parent directory
json-compilation-database: Error while opening JSON database: No such file or directory
fixed-compilation-database: Error while opening fixed database: No such file or directory
Running without flags.
error: no such file or directory: '/tmp/a/b'
error: no input files
error: unable to handle compilation, expected exactly one compiler job in ''
Error while processing /tmp/a/b.
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVVNtu2zAM_Rr7hUjgOIm9PfihS5eHYeiGbT9AW3SsVpEMUV6Svx9lN016G1DAcMyQPOeQolg7dao2Bu0OgnOGgYemA2RIiqyJf8-ajpoHsUDbQL73FKDG5oENckccQ5X21ATnT8DUo0f5ZHAW-MSB9gyhwyC2OcHABK3zB_QKHgGSfPPEKTnftR2O8yS7TbKb6b11HuiI-95QjNVtlIbJelOPohh6ZCYl8gGheapkjA0X0VEGSWw4V4dJvh0hxGQiCzUZdzhTF9njM5n5SkCjyiQvJ-68vLhabei1Z7KWN0D7Ppwu0VdtfZ301Xup99BFxOBPeqwGjEMVq3P7XhsMWhqlMGCNTEIwZW7cYBRYFwCH4GaKghzKmynxCM6a80f6fAK5c-9lDFZJMyVjG_a9vBEEBO1JWurJhssQTED37OzsCmp2pReui3Q92Vjlt98_7q6LApEyzsUoVMJfELT6SOpDDGPGRyh-DXZMPOjQuSFAa3DHjwNCkSBi2HcxxBmP9alh47ydz_k6X9s-ogsAv3AOFus4CA46tEq-ruqNA07HXsikKrkgTZAL5uw5hjzcu3o6svLN8eq9a4g5Vvhc5Ms7kKpqqT4vP2MadDD0bF1clgIa89_FQNNiSAdvqi6EnuPk5lt5dtLfoZ6LbjGM-Xv-mYnCewEQUzMPcVds16tlXqRdVWKbrddlWSya9QKpKbClNssaLNpFnS2K1KDcZ66S9RcZbksHGCHioK9vU13lWZ5ny0W2WC2KPJtjgWXWKtV8wiZXRZmsMtqjNvOoY-78LvXVKKkedixOoznwxSkbSO8s0Ugn-HIDO-erP8RB2vtT-hXSkb8a9f8DGjLMZw">