In order to have one unified code formatting style, we use clang-format.
Clang-format automatically formats source code according to a set of rules which a project needs to agree on.
We recommend to install plugins which auto format the code when the file is being saved.
Our setup of clang-format with GitHub actions can be here.
A pull request will only be accepted if it follows those code formatting rules.
Example of clang-format checking a pull request along with gcc/clang/msvc build: