davidmolony / MESC_Firmware

FOC library for BLDC/PMSM compatible with all STM32 targets with FPU.
https://davidmolony.github.io/MESC_Firmware/
142 stars 36 forks source link

Feature/srm clant format radical edits #5

Closed Vavat closed 3 years ago

Vavat commented 4 years ago

I propose we adopt auto formatter help. In this case all of the code has been reformatted using clang-formatter.exe. It is one of the widely used formatters and does a very good job. In order to deploy it we will need to decide on code style acceptable to everyone. Once this is done, I'll write up a script that will tell clang-formatter how we like our code and it will format it automatically every time.

Do not merge this PR, it is a draft right now.

Vavat commented 4 years ago

@davidmolony, @cod3b453, I suggest you look at the coding style in this branch and post here your objections. we'll then discuss them and hopefully converge on an acceptable format that works for everyone. Current format is straight up google, except I didn't go to trouble of renaming all functions and variable names to conform to google style.