sassanh / qnvim

Neovim backend for Qt Creator
MIT License
134 stars 8 forks source link

Create clang-format file and format the code #38

Closed gikari closed 1 year ago

gikari commented 1 year ago

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.