Donate Share

Uncrustify Code Beautifier

Tracker: Bugs

5 nl_after_brace_open_cmt=false fails for if if else else - ID: 2889852
Last Update: Comment added ( bengardner )

input:
int main()
{
if( foo == bar )
{ /* this works */

}else
if( ranz != bar )
{ /* this works too */

}else
{ /* this is broken */

}
}

output:
int main()
{
if( foo == bar )
{ /* this works */

}else
if( ranz != bar )
{ /* this works too */

}else
{
/* this is broken */

}
}

expected: like input

config file, input and output attached


Nepenthes Development Team ( nepenthesdev ) - 2009-10-31 06:12

5

Closed

Fixed

Ben Gardner

None

None

Public


Comments ( 3 )

Date: 2009-11-20 02:09
Sender: bengardnerProject AdminAccepting Donations

Fixed in 19463629dedebd2ac84d001ef6dbb4f419856654


Date: 2009-11-20 01:56
Sender: bengardnerProject AdminAccepting Donations

OK, so the problem is that something inserted a newline between the open
brace of the ELSE and the comment.


Date: 2009-10-31 06:13
Sender: nepenthesdev

the webinterface screw'd this up, so better look at the files ...


Attached Files ( 3 )

Filename Description Download
uncrustify.conf config file Download
crusty.c input Download
crusty.c.uncrustify output Download

Changes ( 9 )

Field Old Value Date By
close_date - 2009-11-20 02:09 bengardner
status_id Open 2009-11-20 02:09 bengardner
resolution_id None 2009-11-20 02:09 bengardner
allow_comments 1 2009-11-20 02:09 bengardner
assigned_to nobody 2009-11-20 01:56 bengardner
data_type 786647 2009-11-20 01:56 bengardner
File Added 348950: crusty.c.uncrustify 2009-10-31 06:13 nepenthesdev
File Added 348949: crusty.c 2009-10-31 06:12 nepenthesdev
File Added 348948: uncrustify.conf 2009-10-31 06:12 nepenthesdev