A lot of IDEs and text editors (Qt Creator included) support .clang-format file and are able to format the code automatically according to it. This change introduces this file and formats the code according to it. This sets the standard for code formatting. Later it would be possible to add CI checks or/and pre-commit hooks, that check or format the code.
The formatting rules are mostly arbitrary, so they can be changed, if suggested. I do not mind any particular standard.
A lot of IDEs and text editors (Qt Creator included) support
.clang-format
file and are able to format the code automatically according to it. This change introduces this file and formats the code according to it. This sets the standard for code formatting. Later it would be possible to add CI checks or/and pre-commit hooks, that check or format the code.The formatting rules are mostly arbitrary, so they can be changed, if suggested. I do not mind any particular standard.