epfl-lasa / wiki

Best practices, conventions, manuals and instructions for researchers at the LASA
5 stars 1 forks source link

Improve CLion code style #5

Closed domire8 closed 3 years ago

domire8 commented 3 years ago

I realized that we have a few formatting issues on control_libraries, and I made a few tweaks to resolve them better:

  1. After function return type, the values for both global and class scope is now Wrap if long which results in a new line after the function return type if the line is too long
  2. Line breaks are not kept when reformatting
  3. Under Constructor initialization list, the value for Place ':' on next line is now Never and the value for New line after ':' is now if long.
domire8 commented 3 years ago

@eeberhard I made the changes to the clang-format too, it's the closest I come to the CLion style but obviously, the CLion is much better...if I run the clang-format on some of the files, it still changes a few little things