Sarcasm / run-clang-format

A wrapper script around clang-format, suitable for linting multiple files and to use for continuous integration
MIT License
245 stars 68 forks source link

Support cmake-format #25

Open okainov opened 4 years ago

okainov commented 4 years ago

It maybe not directly related, but usually people check native code with clang-format (this script) and cmake files with cmake-format. The tools have relatively similar interface and both of them don't support scanning folders :) While this scripts solves is for clang-format, it would be nice to have the similar wrapper on cmake-format.

Possible options:

I think latter will be useful for a lot of people, so there won't be the need to different wrappers and there can be one to rule them all.

Sarcasm commented 4 years ago

I would first try to see if cmake-format cannot it himself, unlike clang-format, it is already coded in python, and the project is smaller, younger, so it's easier to add features to it.