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

    <tr>
        <th>Summary</th>
        <td>
            C# verbatim, interpolated strings sometimes break
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          3geek14
      </td>
    </tr>
</table>

<pre>
    I have two files that each have a single verbatim, interpolated string:

mwe-good.cs:

    $@"path\to\{specifiedFile}"

mwe-bad.cs

    @$"path\to\{specifiedFile}"

When running `clang-format --style=LLVM mwe-good.cs`, the output is identical to the file (yay!). When running it on `mwe-bad.cs`, the output is different:

    @$ "path\to\{specifiedFile}"

There's an extra space added, which causes compilation errors (when it's a full file and not a MWE). As of C# 8, [both orderings are accepted](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-8#enhancement-of-interpolated-verbatim-strings).

As a bug report, I'd like the space to no longer be added. As a small feature request, and only if it's easy to implement/maintain, I think it would be nice if clang-format picked an ordering of the two symbols and made verbatim, interpolated strings always use that order.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVVMtu2zAQ_BrqspAhU_JDBx3SpAEKJLeiPVPkSmJNkSpJxfXfd0knbRIEKGrYkqAlZ2dmh-6dunRfYBJPCPHsYNAGA8RJREAhp2tBQNB2NAhP6HsR9cz4LWgb0S_OiIgKQvS0gtU3rLpj1fN1PmM5Oqc2MryrAH0Yb1hTMc4XESe2u42OLuzwKSwo9aBR3RMVdrijFe9Be5Ex3wMmtOa_Ab9PaMGv1pIAYPtKGmHHcnB-Jg_KMsQL7arvHh6-PcJrRfsquRAnBLfGZY2gA2iFNmopDESXS8lOUnq8iAvjW8bbDbzppyM4m7q-kvURsNLDgJ7APzIy64b_Fv51IkTGDwGEBfwVPY15EZLGrRSqxOE8aYqAFGugTEg3L5qmrYkweu98SMLOSY2OVxgYVmOumoVVYF2kd4_fP2fdNwHcALeM13BM4Gz3qXdxAucVpvDQfk_7pMSFEsV2RPc4xbjk7PB7-hoU3m5mLb0LbogbYkRv0ZZroLty0SIRuZdhEn6hhzOlOJQWz39eltS5RjsJK3EmN0s3lK9zXL4EvLwGOiTmrz27SSr7dQSPi_Mx6fhC2hUYfcI8s6uFNH7rwDg7oof-2dLsAZk8i-QSiriSYI8_VwwZKXnmrLmAHl4sRREuCUzPi8mMScosiDL9cnPqqe0p5ejsVqNSL6uJAEG8CfKi5YnOKU36xe80jUQ4nfpwmXtnQmYwC_XPg04rzVlcAlAyrn8WGXVTYLfd75vmsK_rfaG6WrV1K4qoo8Euj_6fwMHNSHUKXO9RnIrVm-5tDEYdp7V_nr4xTy-3cvHuB8pkkQ6BTKWH3bHa82Lq-horlNtmaMRR8h1vudzyuj82Aw7Y7mRhRI8mdBRKOiUUGcgQ6cTs7grd8YrzquXt9ljz7X5TV9Wu5-0BUdUtP_Z0BJHGYjaJx8b5sfBdpkRRCVQ0OsTwtyhC0KNFzO0IX6xxcr6rR8TTtily6y5T_w1Bl9A4">