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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] Qualifier alignment ignores namespaces prefixed types
        </td>
    </tr>

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

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

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

<pre>
    Assuming the above code:
```cpp
namespace Foo {
namespace Bar {

void FixNamespace::example() {
    int const aaa = 1;
    FixNamespace const bbb;
    Foo::Bar::FixNamespace const ccc;
}

// ...
```

With `QualifierAlignment: Left` in `clang-format-15` configuration, the code will be fixed as follow:
```cpp
namespace Foo {
namespace Bar {

void FixNamespace::example() {
    const int aaa = 1;
    const FixNamespace bbb;
    Foo::Bar::FixNamespace const ccc;
}

// ...
```

The last instruction `Foo::Bar::FixNamespace const ccc;` should been fixed but is not.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzEVM2OozwQfBpzaQWBHUg4cCBfxOnTSiuttOe2acArYyPbZGbefgXMTzKay55G4k_dVd12VRsMQQ-WqGbFhRXXBJc4Ol8bd6NRW8xFIl33UjchLJO2A8SRAKW7ESjXERMNy64sa1iZ7Zea5z1icaIwoyJonQN2unwOX9B_hPfnzekOWv384w201hcNPeM0G2L8zHj1wQEA0DaCcjZEQERg4go5E3f5-2KvQCnlI8S5vc0F_f7xBUkp9U5ip-v9ohlvGW8hTdNPUtyDfus4Aiuznwsa3WvyjdGDnchGJhr4n_rIygy0XTHKoB0OvfMTxkNerAnlbK-HxWPUzjL-32bDagA8aWNAEvT6mTrAAL0zxj19uzG7bKs9Xxuz5x-U_hZjfo0EBrelhugXtQq8mvAvzcsMwugW04Eksq9WyCWCDmBdTJOuFl0lKkyozsvqnJVHfqqSsRZ5LtWxQ1SnXqI896o8Cc5RZKdeZF2f6JpnXOTrzUWeF2kvc16IvKjO3bk4liU7ZjShNqkxtyl1fkh0CAvVZVXxPDEoyYTtaHN-P1aM8_Ww-3qlHeQyBHbMjA4xfBSKOprtt_BALK7wPsOAb0MMerDOU4D3KQowe9qViC8zhWTxph5jnMOq5ubMoOO4yFS5ifF2bfv6Osze_SEVGW-3zQTG220_fwMAAP__b3Zl8A">