Open Nimac0 opened 5 months ago
Consist of:
The SDL foundation provides their style guidelines used within SDL, which are based on the LLVM style set. Using it would make sense as we are an SDL based project, however it does do some minor things differently than they are right now in the code base - to some degree at least. This would be alleviated somewhat by the fact that we could apply the style set automatically, but we would need to agree on it.
https://github.com/sdlfoundation/sdl-cpp-style/tree/master
To test this style guide, copy the .clang-format
from the linked repository above, run clang-format --style=file -i ./src/*.cpp
and clang-format --style=file -i ./include/*.h
from the engine's root, but do not commit any changes, as this would taint the git contributions. Also make sure you don't have any uncommited/stashed changes before testing the format, as the easiest way to revert the formatter is to discard changes.
Indefinitely on hold as a styling guideline could not be agreed on
uwu beni make presentation please 👉👈 (explaining the options)
https://clang.llvm.org/docs/ClangFormatStyleOptions.html#basedonstyle