run auto-formatter over cmakelists.txt #619
Reference in New Issue
Block a user
Delete Branch "mueller/amft-cmakelists"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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