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

    <tr>
        <th>Summary</th>
        <td>
            clang-tidy: false positive from `modernize-concat-nested-namespaces` on inline namespaces
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

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

<pre>
    clang-tidy 14 incorrectly complains about the following input

```
namespace asmjit::inline _abi_1_9::x86 { // <-- it claims that the "x86" namespace could be concatenated, although it is already concatenated
class Assembler;
class Gpq;
}
```

When applying the proposed rewrite, the code is rewritten to

```
namespace asmjit::inline _abi_1_9namespace x86 {
class Assembler;
class Gpq;
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJylUsGOozAM_ZpwsahCoNAeOLRTzX7CHqskuJBRSNgkdLb79WtoZzor7W0k42DHsZ-fnvLdrdVWuj5PprtBUYFx2oeAOtkbaD9OVhoXQSo_J0gDwsVb69-N66lymhPjJ8YPD1_zh62hkyPGSWoEGcc3k1h5IDPOGodwlsqci_P-nvy9q4E1R2DilQxY-ZLnYBIQNDNGmivvw5kQVEoens21n20HavlxWiZ09HVMvIC0afBzPyyNDK1gA8ru9m_ZCpSmxAiHGHFUFgMrj1_zP6ZfnxnWnP676t3_HNCBnCZ7W-hZ8E7BTz5iBwHfg0m4wFry2ne4YLqnCQwk_10mn0UPNr-_XNa1Zbcv9zJLJln8ohQaDxdpI63oo0nmSsIIfgR6NNJuwZk_mN-Zzh1Gojr_xBepCLyDB_5nPpuDbYeUprgsuEqhN2mY1YaESIG1148jJ2bfSKQUmhhn6iletzUXIhtavatUIRvZbIuGX3hZ11jX-oI7oetdV4rMSoU2tmx7ZNtTZlpB73hdVLzifFtsVKnrWjVNJWVZctGwiuMojd0sgzc-9FloVwxq7iNdWhNTfF4SraZ3iB_95UwyDO3V9zS0x0gUZivmdgX8F3MPHOQ">