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
This is a classic pattern, but, because first_text is set to false at the begining of each loop, the test if (first_text){ ... } is always true and the assignment first_text = false; is useless.
I think that first_text shoud be initialized before the loop.
Of course, the bug is only visible when the loop has to be executed more than once.
Regards
The text was updated successfully, but these errors were encountered:
JEAYNE
added a commit
to JEAYNE/uncrustify.dev
that referenced
this issue
Feb 3, 2024
Hi,
Look at how the variable
first_text
is used in the function output_text() in the file output.cppThis is a classic pattern, but, because
first_text
is set to false at the begining of each loop, the testif (first_text){ ... }
is always true and the assignmentfirst_text = false;
is useless.I think that
first_text
shoud be initialized before the loop.Of course, the bug is only visible when the loop has to be executed more than once.
Regards
The text was updated successfully, but these errors were encountered: