RobLoach / raylib-cpp

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

clang-format #331

Closed RobLoach closed 2 months ago

RobLoach commented 3 months ago

Add a clang-format definition file, and apply its coding standards.

furudbat commented 2 months ago

I was literally in the process of adding an .clang-format for my own fork.

It needs a bit more fine tuning, but having an format file and living with it's decision is better then having no file and chaos.

(I personally don't care about formatting, I just run the formatter and learn to read the code)

furudbat commented 2 months ago

I would also recommend adding an .clang-tidy and .cmake-format.yaml file.

RobLoach commented 2 months ago

Sounds good with me. Thanks a lot.

RobLoach commented 2 months ago

Here's one that I used on another project. Not sure how well it appllies here tho https://github.com/RobLoach/nuklear_console/blob/master/.clang-format