<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/63614>63614</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Cosmetic bug - the fix that removes erroneous virtual keyword doesn't remove the space after it.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Aster89
</td>
</tr>
</table>
<pre>
Given this code
```cpp
struct A {
template<typename T>
virtual void baz(T);
};
```
I correctly get the following diagnostic:
> 'virtual' cannot be specified on member function templates (fix available) [virtual_member_function_template]
However, upon applying it, the code becomes
```cpp
struct A {
template<typename T>
void baz(T);
};
```
instead of
```cpp
struct A {
template<typename T>
void baz(T);
};
```
i.e. the correction removed `virtual` but not the space that follows it.
---
I use Vim + YCM, here's the clang version it's using:
> -- Clang version: clang version 16.0.1 (https://github.com/ycm-core/llvm f6d8fd76462bf638dd3368ddb7f60a23f82e8bad)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysVMGO4zYM_Rr5QtiwpUS2Dz5kMpt2D70tCvQ0kCXKUStLhiRnNv36QrFndtpD0S4WCGKL4iMf-WiKGM3kEAdyfCLH50Ks6erDcIoJQ9cXo1f34SdzQwfpaiJIr5DUz6Q-EV5vP7ksmyWmsMoEJyDt02aBhPNiRULCzum-oBMzwhfCPu3XAHAzIa3Cws0bBaP4k9DuC6E9YXsI0j5_e39LuR0_g_QhoEz2DhMmSFcE7a31r8ZNoIyYnI_JSMJOO559AkLbPSWhLUjhnE8wIsQFpdEGFXgHM84jBtCrk8l4915GBEI7bb6CuAljxWiR0B7I8WkP-bIBX96AL-_1H59h5_D4_9m_4g0DoWdYF-9ALIu9Z9YmZVuuJHcaRpR-xvhDO_49rTYuJhQKvP4fVAD-i_7fQabCam_RQ_6sUMDZ31AB4fWbvLyGcU2Q9c3OcRESIV1F2ockgknVR1HKsvx4_AxrRPjVzEDoE_x2_iUrc8WAhLZxy2-Fm-CGIWYKWbo2whqNm_42cmUJ54-ehJ3-AW14VVdNHq5rSkvMaHoh9DKZdF3HSvqZ0MtdzqX0Of3F2tsMmqtOq5YfOB01Z51SjPFOqbHVvBaU6Y5iNwpFaF-ogame9aLAoeFd1zSsOzTFddC8bw9HWrd9L7BretY3XPeyw6bt8SixMAOtKas5q-uO1Yemqo9cMRR61IjtodHkUOMsjK0yp8qHqTAxrjhwxptDYcWINj52C6UOX-FxSSjNqyYMGVOO6xTJobYmpvgtSjLJ4nD2ccZkJIzrBOX2hZuvm4qb5BEwBO_Qr_F9l_yB91cfFCiP0RHavvl-mAOhE4Y8AMUa7PAvXc-E9ke5BP87ykTo5VFGJPTyKPOvAAAA__9FB5uU">