omf2097 / openomf

One Must Fall 2097 Remake
http://www.openomf.org
MIT License
372 stars 40 forks source link

Add clang-format and clang-tidy integration #440

Closed katajakasa closed 2 years ago

katajakasa commented 2 years ago

Use -DUSE_TIDY to enable clang-tidy, and -DUSE_FORMAT to enable clang-format.

Clang-tidy is then automatically run on build, while formatter can be run using "make clangformat".

Added suggested .clang-format and .clang-tidy configs.

Also, manually set C11.