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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] Inconsistent whitespaces in nested namespaces
        </td>
    </tr>

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

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

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

<pre>
    Code:

```cpp
namespace n1   ::   n2::n3   ::   n4 {}
```

Will be formatted as:

```cpp
namespace n1 ::n2::n3 ::n4 {}
```

Expected formatting:

```cpp
namespace n1::n2::n3::n4 {}
```

Version:

```
> clang-format --version
clang-format version 17.0.6
```

Style:
```
Language: Cpp
BasedOnStyle: Google
InsertNewlineAtEOF: true
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUk8-OmzAQxp_GXEZBxmAIBw6bTahWqrqHSu3ZmAlx5diIMbvdt6_4k24SqdWuhMD4m5nfDHxWRKZziBWTOyb3kRrDyQ_VMJL1UePbt-rRt8jSB8b3jF_uOV8u3ffLjlNnpF5pBJcAwBSfPgCAE8vSpTe7GbBix4r9Xblrxk9jLTQIRz-cVQjYgqLPtbGS3ztYFx-AH373qCfmSjeu-xT7Hv1x8g8cyHj3L9r6mh5AW-W6zdIfbDYva96s32irAkkR8zj_D_p7eLNXf_o25Kty3ai6SYfHy8g7Rdg-u0sifPG-s7hoT45wCN_w1RqHD-HwXE8RYRjxrn7UVmlbpqWKsEqKRObbrczS6FS1R7nVKNOyVdtU8bzUhT42ShZlIXiRqchUgouMyyRLBC-5iLnWEgvOM56320xKlnE8K2Nja1_OsR-6yBCNWJUi4XlkVYOWZuMLcf3JmBDTURiqKW3TjB2xjFtDgd4LBRPsfGhuEuUenpz2jgwFdAFeTyYspiAwDhzSZKq_TqFoHGx1CqGfrS1qJurOhNPYxNqfmagn3PrY9IP_hTowUc9DEBP1PMefAAAA__80QA5v">