Once a convention is set, it will be easier for everyone to be consistent, to configure their editors to follow it, and to move/share code around.
There are probably tools that can apply these changes automatically, but I'm not familiar with such tools for C++. If you find one, it can also be configured to run automatically before you commit locally and also when a PR is created.
This is one of the tools you could use: https://github.com/cpp-linter/
It works both as a stand-alone tool, as a GitHub action, and as a precommit hook.
Once a convention is set, it will be easier for everyone to be consistent, to configure their editors to follow it, and to move/share code around.
There are probably tools that can apply these changes automatically, but I'm not familiar with such tools for C++. If you find one, it can also be configured to run automatically before you commit locally and also when a PR is created.
_Originally posted by @ezio-melotti in https://github.com/osu-particle-astrophysics/Shared-Code/pull/11#discussion_r1202370331_