<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/54245>54245</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
BraceWrapping: AfterStruct: true not honored
</td>
</tr>
<tr>
<th>Labels</th>
<td>
bug,
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
carlosgalvezp
</td>
</tr>
</table>
<pre>
Hi,
We are bumping clang-format to latest master and it changes the following example incorrectly, not honoring the setting for wrapping braces after struct:
```cpp
template <typename T>
struct Foo;
template <typename T, std::size_t n>
struct Foo<T const[n]>
{
int x;
};
```
With config:
```
---
BasedOnStyle: "llvm"
BraceWrapping:
AfterStruct: true
...
```
Leads to:
```
$ ./clang-format --style=file:my_config foo.cpp
template <typename T> struct Foo;
template <typename T, std::size_t n> struct Foo<T const [n]> { int x; };
```
Has anything changed recently that could lead to this behavior?
Thanks!
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJytU01v2zAM_TXyhbBhy_loDj6kzYIeBuzQAj0WsszY2mTJkOS26a8fZbdNOvTjssCIaFPkI_kea9scq2vF-BXLdyzfzv93CMIh1GM_KNOC1MK06cG6XgQIFrQI6AP0wgd0IEwDKoDs6BJ6CB3CwWptH2MoPol-0AjKSOscyqCPhAXGBuissS7eiREeQ4g2gcCjE8OEWzshKaM4RBgf3CgDK7fnhbJVPj9yGOYvAQmP6gNWXoXjgEb0CLes_DG75yywt5aVl-eZPomjWn1oImq59eoZ7wOYD5Nd3YK0xge2vDRsuXu7w9YvMEA_ZQI8nYDXu5P92sg7GlToYtaDaj_re35N03Q2LoXH5pe5CUeNFAKMc60fejpe_HGidy_zfcsJsI0jvnmdMJCBsyvLsi8K_ImiIcbt19UxvoCM8f07GaWpn4vcHdRUa3-8n1slDdiM-IRvCIX_xCV8RCOceASi8I05-Ja0a0GKNcfQTZszLUUDpHw0pH3SOvUu7agb0DS8uE1000ONnXhQ1rFyf57sluL_eMaLpKnKZlNuRBJU0Fj9S-RHDJ62DJtkdLrqQhh87J_v6WlJXWOdSUvy2M8qmY50cPY3bSq9Ku9HJPj9csEXy6Sr6gM2eVHyDZbrVV4sys1KcrJWa36xvFiUiRY1al_R9Ehz9dhG5dHc6ThnP35d7hJV8ZzzvMzXRZGXxSbLecFxk3OJuZCFXLFFjr1QOot1Zda1iaumEimzJ6dWPviTU3ivWoM4wVN-MYbOukoKp61vhX7A5yGZeqqmhv4CWqqBhQ">