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

    <tr>
        <th>Summary</th>
        <td>
            clang-format incorrectly formats pointer alignment with PointerAlignment: Right
        </td>
    </tr>

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

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

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

<pre>
    Content of clang-format:
```
BasedOnStyle: LLVM
PointerAlignment: Right
```
In the extern "C" namespace statement block,  clang-format always uses PointerAlignment: Middle to formats pointer to class.
e.g.
```
extern "C" namespace foo {
  class bar;
  void foo(bar * response) noexcept;
}
```
Obviously this is wrong.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx1Ul2PmzAQ_DXmZXWIQELggYd8qFKlO13VSn23zQJuHDvymuTy77tA76qrUmkRXs_O7Hht5dt7c_AuoovgO9BWuv6p8-Esoyh2IjuKbCfK7E_M6V4Stq_uR7xb5Bp4fv75siDfvGGlsLOmd2dWnNDvph_iQ52vDuKAgG9McSDy_MAfOHlGukiNQFFGnGRAWa9PIj_AJ38g7U3eCUZCgketX0zbWoToYSEQXJaqaYuViNLFCaZ9-tDif7113oPY7pcqWMRAySCKj72rN-1UJ_KKAdbYQWC2d4Qir8F5fNN4iR8MsT0-9PCqrsaPZO88LUPAcQve9WnSNkVbF7VMookWm0-jMU77EFBHpv17ePk-I7iZODyc3HxpyRhsM8R4oekl5F84eiaMKtX-zIm11_ff0yX4X9yNU0M0IvFis65WWTI0VVEqjV2X6U4W26JEVaNcr8pKY1koVSdWKrTUiM2eZ-zwBrMEr8XmmJgmz_I8W2dVVq1W6zJValOzXL1qsd202Il1hmdpbDr5SH3ok9DMltTYE4PWUKS_IN8TnxNxbsf6coyDDw2dtL_Lk0_m3s3s_TdB1v4-">