You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Uncrustify-0.78.1_f (downloaded from Github), with Windows 11.
In the examples below I'm using an empty configuration.
When I submit this kind of code to uncrustify a=b<op>c;
the output is the same as the input.
This is true for <op> in { + - * / % << >> | & ^ }
Example Input: a=b/c;
Output: a=b/c;
When I submit this kind of code (with <op> != <sign>) to uncrustify a=b<op><sign>c;
the output is a=b<op><space><sign>c;
The addition of this space is true for all combinations where <op> is in { + - * / << >> % | & } and <sign> in { + - } and <op> != <sign>
EXCEPTION: with operator ^ no space is added between ^ and the sign (input == output )
Example Input: a=b/-c;
Output: a=b/ -c;
Attached a .tar.gz file with the outputs generated by this command uncrustify -c empty.cfg -f FILE.cpp -L A 2>FILE.log 1>FILE.out
With these 3 input FILEs
Hi,
I'm using Uncrustify-0.78.1_f (downloaded from Github), with Windows 11.
In the examples below I'm using an empty configuration.
When I submit this kind of code to uncrustify
a=b<op>c;
the output is the same as the input.
This is true for
<op>
in {+ - * / % << >> | & ^
}Example Input:
a=b/c;
Output:
a=b/c;
When I submit this kind of code (with <op> != <sign>) to uncrustify
a=b<op><sign>c;
the output is
a=b<op><space><sign>c;
The addition of this space is true for all combinations where
<op>
is in {+ - * / << >> % | &
} and<sign>
in {+ -
} and <op> != <sign>EXCEPTION: with operator
^
no space is added between^
and the sign (input == output )Example Input:
a=b/-c;
Output:
a=b/ -c;
Attached a .tar.gz file with the outputs generated by this command
uncrustify -c empty.cfg -f FILE.cpp -L A 2>FILE.log 1>FILE.out
With these 3 input FILEs
bug-report_20240328.tar.gz
Regards
The text was updated successfully, but these errors were encountered: