I guess the problem is that clion is not open source and thus would be a bad dependency imho.
It also seems there is no "standard" formatter for cmake.
I just tried cmakelang (available via pip) and it produces similar but different output.
We could use this as an open source tool or just depend on one developer running clion from time to time...
> Can you add that to the auto format script?
I guess the problem is that clion is not open source and thus would be a bad dependency imho.
It also seems there is no "standard" formatter for cmake.
I just tried [cmakelang](https://https://github.com/cheshirekow/cmake_format) (available via [pip](https://https://pypi.org/project/cmakelang/)) and it produces similar but different output.
We could use this as an open source tool or just depend on one developer running clion from time to time...
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Run
clionCMake auto-formatter over theCMakeLists.txtfileCan you add that to the auto format script?
I guess the problem is that clion is not open source and thus would be a bad dependency imho.
It also seems there is no "standard" formatter for cmake.
I just tried cmakelang (available via pip) and it produces similar but different output.
We could use this as an open source tool or just depend on one developer running clion from time to time...
I don' think
clang-tidycan do this. I like the idea usingcmakelanginstead of relying on a propriertary tool. I might give it a tryI ran
cmake-formatand I am happy with the outputI will add the
clang-formatcall to the auto-formatter scriptGreat! LGTM