RobLoach / raylib-cpp

C++ Object Oriented Wrapper for raylib
https://robloach.github.io/raylib-cpp/
zlib License
673 stars 87 forks source link

Add Code Formatting (#331) #332

Closed furudbat closed 2 months ago

furudbat commented 2 months ago

Hello, I added my .clang-format mixed with nuklear_console .clang-format changes.

I also tried to close as possible to raylib CONVENTIONS: The Name convention can be forced with .clang-tidy readability-identifier-naming.*.

I try to make the style as close as possible to raylib AND modern C++, @RobLoach pls verify this style and use it from now on, make changes as you wishes ... after that I would recommend formatting the code before/after mergen an PR. (Use the formatted files as a "preview")


For convince, I added a CMake command format, I personally using Format.cmake, making a simple command does the job (I'm sure there are better solutions)

RobLoach commented 2 months ago

Thanks so much! Looks great.