Add clang-format config file - #2026
Conversation
|
adding a formater config does not change anything, or do you plan to apply the format for all files afterwards? Or only new files, or only changed files? |
|
I plan to apply the formatting piece by piece in the future. This PR is mostly about making the decision, whether or not this is the "correct" style for the project. |
|
Our previous coding guidelines should also be changed then. |
|
Fine for me. Would be nice to have a make target or helper script or at least a command to apply formating to a given file. |
|
well, I can write Concerning the part of "keeping the old style" I would have to ask you to define the old style first :-) |
|
fine for me then |
Would be nice to have that at least in the CODING file then. |
Small commit, huge decision
I propose to define the code style of the C part of the project in the
golangstyle.Whatever
clang-formatdoes with the config is the right style.I do get annoyed everytime with mixed indentation in the code and stuff like that.
Will this totally ruin the first level of
git blame? yesNonetheless it makes things better IMHO.
In addition to this change and reformatting stuff, when convenient, we should adapt all relevant documentation.