RTEMS | Reformat cpukit rtems src (!237)

Gedare Bloom (@gedare) gitlab at rtems.org
Mon Sep 23 23:33:13 UTC 2024




Gedare Bloom commented on a discussion on cpukit/rtems/src/rtemsbuildname.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/237#note_112441

 > +  char c3,
 > +  char c4
 > +)
 >  {
 >    return rtems_build_name( c1, c2, c3, c4 );
 >  }
 >  
 >  #undef rtems_build_name
 >  
 > -rtems_name rtems_build_name( char c1, char c2, char c3, char c4 )
 > +rtems_name rtems_build_name(
 > +  char c1,
 > +  char c2,
 > +  char c3,
 > +  char c4
 > +)

I currently have it set to always break lines if there are more than 1 parameter in a function declaration. This is a newer feature supported: https://clang.llvm.org/docs/ClangFormatStyleOptions.html#binpackparameters only for function parameters, not for function call arguments.

We can also make it only break if it exceeds the line length.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/237#note_112441
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240923/e3bb8b96/attachment.htm>


More information about the bugs mailing list