<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=http://email.email.llvm.org/c/eJzNVdty2zYQ_RryBWMNRZq6PPBBqq1pO750GnsyffKAxEpCAwIqLtY4X9-zlOxYaRo3kzyUI4EEsDh7drE4aJ16at67ZJTQUbQkdi4E3RoSa-dFNik6I-3mDJ1eRnRFdGLn3aNWJKTYyycekEZvrOicDdSlqB9JhOhTF5OnkJU_CSBJ72Hr1q9mxF7HrYhbWMuehE19S55NyFBPNoasWmXFRVYsDu0KMNqGKG1HjPqBaDcsH9zzCl7MA2tnjNtruwEnNdjyOpKKDZgm2HueJtltj4xEoJ30MpJ5-swvoj7-hq7Ak5WrrFyIO_hqZdCd8MlQGAmxYMfCWeKY494JpTc6BvgXUSPIzvU7zHJwYBU0h_KCiic4GLXefSCL73XcSw-oniE4MIMYmPdH8si6VQKUAymwhiNls3IaT-A6LB-B7YIJv0wghRGcORHxOXoOgGOhB_7K6mVWX4iswn-6PIHkgbs_frt8uLm_Xl7-zmHgKQ7vm_urq-Fr6I-5KbPpBd5fxrhdvnu4vr25-5ktP8MYl9xWh-YrGG_zGIDOvw_j7VguLq9-uT5CIOXTrFpwi4EvII1_FJtPJYlOtXxdt68K9XYXtbPSoMix6yoIGYd6IquezwyXJwr4ne61kR6HAB6UG0pKePoraRQi7E4Yvy7HbyizI4n_XGn_58zepB5S0h1O90cc7RcR4KRuXfJQVM_ZZ6Hkk_yPgzw64XpvobUx2YMSsXgyBB9zqF8QG0-khvHgxB4eJNSWNZktAA0TGViATkCP2sqKAe8W1hHCBy5pJww8-W_YPQ7yR4tE_UbCXyQ4V02l5tVc5jLFrfPNr8losmeXaPPkTbONcReGAsH2rKC929SOoLroGPP4_DrDFfYndRFdHULiW2pVl_NZkW-b9WQ6r1StuknXtmMqKzWtZdsWs6pbq1atcyNbMqHh8MvS0l4MEPhGNvLvZ6CbsijLYlycj4t6VkxG1BU0mapZR3VdtbN5dl5QL7UZMc7I-U3umwGyTZuASaNDDJ8mJe7zjSVqDvuVRx0NNYuvXNmHi_lfLuV8oNsMXP8G-GNiww>52980</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Align consecutive structures with same number of elements
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Julien-Elie
</td>
</tr>
</table>
<pre>
Would it be possible for `clang-format` to provide a way to align consecutive structures, or array of structures with the same number of elements?
For instance, keep the alignment of the following code, instead of considering each struct separately?
```
/* The basic rules. Allow one or two digits in time components, since
some broken software omits the leading zero and parsedate didn't
care. */
static const struct rule base_rule[] = {
{TYPE_NUMBER, 0, NULL, 0, 1, 2},
{TYPE_OBS_MONTH, 0, NULL, 12, 3, 3},
{TYPE_NUMBER, 0, NULL, 0, 2, 4},
{TYPE_NUMBER, 0, NULL, 0, 1, 2},
{TYPE_DELIM, ':', NULL, 0, 1, 1},
{TYPE_NUMBER, 0, NULL, 0, 1, 2}
};
/* Optional seconds at the end of the time. Similarly, don't require the
leading zero. */
static const struct rule seconds_rule[] = {
{TYPE_DELIM, ':', NULL, 0, 1, 1},
{TYPE_NUMBER, 0, NULL, 0, 1, 2}
};
/* Numeric time zone. Allow the hour portion to omit the leading zero.
Unfortunately, our parser is greedy, so we have to parse this as one
number and then patch it up later. */
static const struct rule zone_rule[] = {
{TYPE_NUMBER, 0, NULL, 0, 1, 5}
};
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzNVU1v2zgQ_TXShYghS5FlH3SwNzF2F_komgRFTwEljW1uKdLlR4z01_eN7KRxt9ts0R4q2JRIDt-8GQ4fG9s91u9s1J1QQTQkttZ71WgSK-tEMslaLc36BJ1eBnRFsGLr7IPqSEixk488ILVaG9Fa46mNQT2Q8MHFNkRHPsn_EECSzsHWrl7MiJ0KGxE2sJY9CRP7hhybkKaeTPBJsUyysySb79slYJTxQZqWGPUD0XZYPrjnFbyYB1ZWa7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