bug-indent
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-indent] indent breaks complex numbers


From: Richard Henderson
Subject: [Bug-indent] indent breaks complex numbers
Date: Sat, 25 Dec 2004 23:07:10 -0000
User-agent: Mutt/1.4.1i

Given

_Complex int fi (void) { return 1 + 2i; }
_Complex long fl (void) { return 1l + 2li; }
_Complex long fll (void) { return 1ll + 2lli; }
_Complex unsigned int fu (void) { return 1u + 2ui; }
_Complex unsigned long ful (void) { return 1ul + 2uli; }
_Complex unsigned long full (void) { return 1ull + 2ulli; }

Indent will break apart the "i" from the rest of the integer-suffix,
like so (lines rejoined for clarity):

_Complex int fi (void) { return 1 + 2i; }
_Complex long fl (void) { return 1l + 2l i; }
_Complex long fll (void) { return 1ll + 2ll i; }
_Complex unsigned int fu (void) { return 1u + 2u i; }
_Complex unsigned long ful (void) { return 1ul + 2ul i; }
_Complex unsigned long full (void) { return 1ull + 2ull i; }

Which, of course, does not compile.

My feeling is that indent should never break apart any pp-number
entities.  That's the only way to ensure that code is not broken
during the transformation.



r~




reply via email to

[Prev in Thread] Current Thread [Next in Thread]