Re: [PATCH 11/11] Fix formatting of struct initializer lists, and add -sar
Tim Hentenaar <[email protected]> Wed, 17 Jun 2015 08:29:17 +0200
| Newsgroups | gmane.comp.gnu.indent.bugs |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Jun 17, 2015 at 01:08:19PM +0800, Clark Wang wrote:
Hi Tim,
>
> Does your github repository ( https://github.com/thentenaar/indent )
> include all these patches? I just tried your latest code (commit
> 3c3dbe3e33) but it did not work. See followng example:
Indeed. It's something related to the sizeof operator. I'll look into it
today.
If you change the first two lines in the initializer list for arr to
{ &a, "xxx" },
{ &b, 123 },
those get formatted correctly.
Kind Regards,
Tim
_______________________________________________
bug-indent mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-indent
signature.asc
(application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABAgAGBQJVgRO9AAoJEPHs51dHcEI4KWoQALKSm8xkJsFase97ibXf60HP 9qvSIr5X1XT7/EJWiUJAOtXvodsxEuTW/Yh5ohfkhw+4+zVFNFaJ+KNhrmWChzqk qIBpRE8xN98mOpg2AZ8WN6WNhmNOfFfrlnBUeW4Jac6bSpd0xqA9gHF+n2rVHPMh t2z8+sQ15cbtqWeJYOHKHMgjfWN9rXzQCbi5EACzY0e7dU/9v0mrRj7KdhdFos+3 8+KsdXpAbMPYB+lqB2BTzsRGM22zyC/QHemDrzVw+4mMAg692f2Z13DN6k/pQr6A Jyk8kPaiW/9W3t37Ya97TKYlgHSokhmkeXlXfE/vK8aP31gWza/RwW2/DhZrY6Bv 1w4wRcrVg/SEOg6P20chkCRemwb5HB+ZVUhNw94glyg47hFtdYZKcPsjxhiM//8m 2dUUQRfzk5pyz+fkmXb/h5zKp5TWUfzvvTHl3skeZQGd7Nvm08ARp7TwISRGsDBZ Oshc6wR6dRMT6lxSBZTtPUNfy+nah0eZW8VnseUiq3dAbBUw7x1JEqP5Vg7UKGyT Jz6jod9/cfbc7fVLNnaiexQvfG+DOYr3rjtvuXgawUIZYFvdxtRsomAa0ppEN+HI 8H7cV6AeNPELa3qJpr4otlaZ9MSJM4efSB8NtogEilgtEqsfetwzJ5Y8TEvWaVXx ISR6gGl4leHvEA+D7f7s =J9iG -----END PGP SIGNATURE-----