KratosMultiphysics / Kratos

Kratos Multiphysics (A.K.A Kratos) is a framework for building parallel multi-disciplinary simulation software. Modularity, extensibility and HPC are the main objectives. Kratos has BSD license and is written in C++ with extensive Python interface.
https://kratosmultiphysics.github.io/Kratos/
Other
1.01k stars 244 forks source link

[GeoMechanicsApplication] Format GeoMechanics code base using clang-format #11919

Closed rfaasse closed 3 months ago

rfaasse commented 8 months ago

In this issue, the geomechanics code base will be formatted using clang-format. It will be done folder by folder, which is why there are multiple PRs linked to this issue.

rfaasse commented 6 months ago

Issues we want to tackle/discuss later:

  1. We should discuss in the team if the majority prefers else on the same or next line with respect to the closing '}' of the if-statement
  2. We can experiment and discuss about higher penalties on breaking after assignment operators (i.e. force a line to continue after '='.
  3. We can experiment and discuss the breaking after '<<', which in combination with the KRATOS_ERROR is not always consistent now.
  4. We can discuss how we want to handle indentation when breaking a line (remove it or keep it).