Skip to content

Reformat cpukit rtems src

Gedare Bloom requested to merge gedare/rtems:reformat-cpukit-rtems-src into main

Summary

This is a first attempt at automatic formatting using clang-format. I'm working on making the build of clang-format necessary to recreate this formatter part of RSB. At the moment it requires building the llvm-project.git with some extra patches that are pending acceptance to the upstream.

Please provide feedback especially on undesirable changes.

A few notes:

  • return statements are now aligned with the space character after return. This is a default behavior of clang-format and seems unnecessary to change, but it does result in quite a few whitespace changes.
  • we have a mix of [] and [ ]` without and with spaces. I decided to go with spaces, as there seemed to be fewer changes that way. It is also more in-line with the prevailing rtems style that encourages more horizontal spacing.

I'm not sure the best timing, but I think we should try to make these changes at/near the release point, either before or after it.

I rebuilt and tested using erc32-sis and leon3-sis (SMP).

Merge request reports