djh0ffman / PT1210

PT-1210 Amiga DJ Software
40 stars 3 forks source link

C code style guide #22

Open dwhinham opened 5 years ago

dwhinham commented 5 years ago

We should come up with or pick a commonly-used code style guide to stick to throughout the project, which defines things such as (but not limited to):

We can also employ tools such as clang-tidy to automatically detect when we stray from these and automatically fix them.

Editorconfig a nice tool which is built into many editors or available as an extension which reads an .editorconfig file and sets up things like indentation automatically.

djh0ffman commented 5 years ago

as I've never worked on clang project before, happy to work with whatever you feel is best.

one thing however is the ASM, it needs the indenting cleaning up, but I think we tackle that when we know what is left.

dwhinham commented 5 years ago

That should be a nice easy task with Tat's VSCode extension 😄

kikendo commented 5 years ago

You'll have to bear with me here as the non-coder-that-codes, I might stray from all these conventions until I get used to them.

I just plonk code in and make sure it works haha. Formatting is usually whatever I find readable, and I never really collaborated with anyone like this before, so... Sorry in advance! Feel free to yell at me until I get it.