<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 14, 2020 at 12:11 PM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
I tried to write a configuration file for Uncrustify which is close to <br>
the RTEMS coding style. This tool has really a lot of options. The <br>
configuration file has more than 3000 lines. Apparently this is not <br>
enough. I was not able to get function parameters properly aligned. For <br>
example:<br>
<br>
- Thread_queue_Context queue_context;<br>
- Thread_Control *the_thread;<br>
+ Thread_queue_Context queue_context;<br>
+ Thread_Control *the_thread;<br>
<br>
It seems Uncrustify interprets the '*' as some sort of white space. <br>
Attached is my current configuration file. You can test it for example <br>
with cpukit/score/src/threadqenqueue.c.<br></blockquote><div> v</div><div>I'm not a huge fan of moving the * to after the type rather than against</div><div>the name but if we accepted that change to the style, would the parameter</div><div>names line up?</div><div><br></div><div>Just curious. This is an area where giving on one point may make things</div><div>better. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div></div>