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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] does not handle well concatenated namespaces closing comment if inline namespace is used
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-format
      </td>
    </tr>

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

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

<pre>
    test.cpp
```cpp
namespace a::inline b {
int c;
} // namespace a::inline b
```

clang-format-17 says code needs formatting but does not change anything in it
```console
$ clang-format-17 -Werror --dry-run test.cpp
test.cpp:3:3: error: code should be clang-formatted [-Wclang-format-violations]
} // namespace a::inline b
  ^

$ diff <(cat test.cpp) <(clang-format-17 test.cpp)
$
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUUkmvmzAQ_jXmMiIyNkty4JDXNH_hnY09gCtjR8zwqvz7Cl6aTeqhUgLM2LN8iyHyQ0RsRfUhqlNmFh7T3H55jJx1yV1bRuKdvVyEPAl5FLX8_t0z0UxIF2MRjNBHoY8-Bh8ROhDNx_cVHxms0LdINCcQ6izUGf5Z-zbsFm5PG0wc8j7Nk-G8aIDMlcAmhxARHcH3Cfs4QLcwuIQEMTHY0cQBwcQrj-uhj-D5HVSKlALesqqE92H5J85zmiHP3XzN5yXCKz33SB_17Q9bxfqxLUljWoKDDl96MzoQ1Uf--TLwy6dg2KdIojr9L3kAovr5TNyKx_m-B6F_CLW3hh_Lq8Pf7Bvgpxv3Lm-kZa7V7qAPJsO2qA9VU-xLKbOxdZXrixKt7lR3kGXX901R1HVv9tLoot5nvlVSaXlQtdxXWsld7UqHFWJZ1l2tCylKiZPxYRfC17RL85B5ogXbuillkwXTYaDNuUo9Ly6UWr08t2tZ3i0DiVIGT0yPRuw5bK5_KaxOD8OMJrqA8BtDAJuiNYzRrELdiSewIdFqJpumCSOD7-GmwkMdT7AQumyZQzsyX2hVa5Nw8Dwu3c6mSajzutntlV_m9AstC3Xe8JJQ5w3ynwAAAP__lF8jYw">