<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJy1VluPmzgU_jXkxSICcwsPeUgy22qkrrrbdtXHyuBD8I6xkW2Szr_fYxOmyTTaSrstQgIf-9y_70Cj-fP2s3A9cT2QTkupz0IdybqVTB3jTpuBOdIJCVG2i5KHKNlFZXK5wzKO4_nlHSpM7OgPksM4zsKdFEe1M4Y9v-8-OjO1bjJg_ZF30Ln5zKPioNxnwV3vN_JZ-ok1r0V_WUCpFwSzPuyPI2vRXtjeG2BPe8CYYW-COJyUA1N3I7_4wbxbzYEIS-Z0HXAiFBYEJWf2TCK6UdpBqJBjjcVNK_i85tAJJZzQiuhurqEw1hF31mRgIwEJAyZnI1ov7tCqVvKZ9GwcQaGLHrwzMCEEphYdcl7aIkEd8fXGwWJ4kXpnzISgLET0QJglVmNY-PT7L-f9obbHXmGWc89Dzr7pDbR6AIvlMAZat75btVYrdI_uouxgnUE9700oV-ZfXJT9Rg5Y_w8wauM8ZLLdW3Bv2QAHPSkHxn7wGDuBeVSdxsq-FCaq9ktbauuYE-2_OWlna9fGyLUFf-OS0gOz_aPCFzRwkYebEJInyxVVD2H7O2Ut1H9W_nNiygn3_PsknfjD6CMC34oTzOZIWRRZQfz12gAus2-ZGEDKqHsJfzuFGvdaFbB21V-p9RPiTYDhCEFyRHxNje86myyCz3n8Tdaf3BAbiOW1CbC298D3uHfAuIdcvibvFTnZwJxXMJrdSPEEgUMLjGgaFXsx-AlRYMKb3rnRUzSib_DGCEwcdu16DsxLEGwOUbtGXOKZTV1lZZrjW1qkWV5UeR1XVZm1NGniTbPZxDnlaVx3HY_LJim6TZvkdZ2vR4-f-jXr4euIKEcaXMV-1pPkWJJLHQJRr0rhM2V-9gSCXlFvodf61gkWtIGenQTqLnz3drTnO5mRfaG39Uw9g5QeHL0-A3aZPKLWCQiOH1SbFCeMjH5AISC8mXOPw9l3L5D8ytnPo-4nMINQTP5y-t5l7w6_F-gbOfw9CWceqmkAI9ovUgwCx2x2QC8ZDV7mHAb29RLnD3i6ZPpDvt67fhmHfz5typrmcdIllKWUxUWR0zivgMZNxeuYtSkr2zRJs7q8oc2KbzNeZzVbscn12mwfEGg8PjCsWc9Wk5Hb28jmaC4hSHlaHvFo9N_IO1wKayf8StM3RZbndNVvOXK4zSFLMIQCuizlLbCkZGXapJukZSvJGpB2ixXBrig4k2DCd6h4WP3_CMSWJpQmKa3SNNnQfJ2mnKasqjLedrTMyihPYGBCrr2dtTbHldkGk810tLgphcUZ8LLJEEBHBRACxggRZhK2N79W93-QAuPDoPED4vI9xlEU_hXm0eT_RFYh_m0I_h-p3AmB>53442</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clang-format AlignArrayOfStructures not aligning correctly when using tabs
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          David-Caminha
      </td>
    </tr>
</table>

<pre>
    With the following .clang-format file:
```
---
Language: Cpp
AlignArrayOfStructures: Left
IndentWidth: 4
TabWidth: 4
UseTab: AlignWithSpaces
BreakBeforeBraces: Allman
```

The code is formatted in this way (note the tabs inside the definition of the first two map elements)
This only happens when there is an element with the length of the first elements of the map are these, as soon as the elements are changed the formatting becomes correct.
```
const map<string, int64_t> CoreReport::GetGameCountersRolloverInfo()
{
        static map<string, int64_t> counterRolloverInfo {
                {"CashIn",                               4000000000},
                {"CoinIn",                               4000000000},
                {"QuantityMultiProgressive", 65535     },
        };
        return counterRolloverInfo;
}
```
This formatting looks wierd on github because it is using 8 spaces for each tab instead of 4. On vscode the formatting looks like this.
![image](https://user-images.githubusercontent.com/8973614/151345749-7763c20b-8b88-42d1-9ffd-6b05f8c04994.png)

The expected formatting would be using only spaces for the alignment of the map elements.

This behavior happens for other string lengths as well, however I have not found a pattern for what causas this behavior.
```
const map<string, int64_t> CoreReport::GetTerminalCountersRolloverInfo()
{
        static map<string, int64_t> counterRolloverInfo{
                {"ActualCash",                                           numeric_limits<int32_t>::max()},
                {"QuantityTerminalMultiProgressive", 65535                         },
        };
        return counterRolloverInfo;
}
```
![image](https://user-images.githubusercontent.com/8973614/151346924-0f02a12a-5542-47e2-b7d9-ac1a6c101396.png)

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy1VluP2ygU_jXOC3Jk41v8kIcks61G6qq7vaiPFTbHMTsYLMBJ59_vAcfTZBptpVVrIQUOnPv3QRrNn7dfhOuJ64F0Wkp9FupI1q1k6hh32gzMkU5IiLJdlDxEyS4qk8sIyziO58k7VJjY0R8kh3GchTspjmpnDHt-3310ZmrdZMD6I--gc_OZR8VBuS-Cu95v5LP0E2teiz5bQKkXBLM-7I8ja9Fe2N4bYE97wJhhb4I4nJQDU3cjv_jBvFvNgQhL5nQdcCIUFgQlZ_ZMIrpR2kGokGONxU0r-Lzm0AklnNCK6G6uoTDWEXfWZGAjAQkDJmcjWi_u0KpW8pn0bBxBoYsevDMwIQSmFh1yXtoiQR1xeuNgMbxIvTNmQlAWInogzBKrMSz89fsv5_2htsdeYZZzz0POvukNtHoAi-UwBlq3vlu1Vit0j-6i7GCdQT3vTShX5l9dlP1BDlj_DzBq4zxkst1bcG_ZAAc9KQfGfvAYO4F5VJ3Gyr4UJqr2S1tq65gT7X85aWdr18bItQU_cEnpgdn-UeEEDVzkYRBC8mT5ouohbP-grIX638p_T0w54Z7_nKQTfxl9ROBbcYLZHCmLIiuI_14bwGX2PRMDSBl1L-Hvp1DjXqsC1q76K7V-QrwJMBwhSI6Ir6nxXWeTRfA5j7_J-pMbYgOxvDYB1vYe-B73Dhj3kMvX5L0iJxuY8wpGsxspniBwaIERTaNiLwZ_QxSY8KZ3bvQUjegbHBiBicOuXc-BeQmCzSFq14hLPLOpq6xMc5ylRZrlRZXXcVWVWUuTJt40m02cU57GddfxuGySotu0SV7X-Xr0-Klfsx6-jYhypMFV7Gc9SY4ludQ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