Menu

#22 Function Parameter Alignment

v1.0_(example)
closed
nobody
None
7
2016-09-26
2016-07-11
No

Hello There,
I am struggling with aligning function parameters properly. For example, in this definition I end up with this massive gap between parameter type and the name:

UINT32 ReallyLongFunctionNameAsAnExample(  const UINT8 parameter1,
   const UINT8                                          parameter2)
{

As you can see, there is this massive gap between type of the parameter and the alignment of the names. I have absolutely no idea how to get rid of this as altering indent_func_*_param does not help.

I want it to look something like this:

UINT32 ReallyLongFunctionNameAsAnExample(  const UINT8 parameter1,
                                                                             const UINT8 parameter2)
{

I'd be okay if I had to do this manually, but I don't even know how to make Uncrustify ignore formatting these without using the INDENT-OFF tag every single time (which is not an option).

Thanks

Discussion

  • Guy Maurel

    Guy Maurel - 2016-09-26
    • status: open --> closed
     
  • Guy Maurel

    Guy Maurel - 2016-09-26
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.