AliveTeam / alive_reversing

Re-implementation of Oddworld: Abe's Exoddus and Oddworld: Abe's Oddysee
341 stars 44 forks source link

Code Standards - clang formatting needs refining #1350

Open rozniak opened 3 years ago

rozniak commented 3 years ago

The clang formatting rules are very annoying at the moment. The formatting rules have a habit of shoving literally everything on one line, forcing you to manually undo things to make the code legible again.

Mainly I find this is a problem with shifting brackets and braces onto one line, basically anything that you want to separate on new lines it will squash it all back up.

MrSapps commented 2 years ago

With clang format you can change it to whatever ye like but then reformat before commit to the format file that is in the repo. Probably better than doing another mass clang reformat until the engine code is mostly de-duplicated/addreses removed from vars and manual ctor/dtor calls are gone.