Introducing cmake-format #505
Replies: 1 comment 12 replies
-
Anything which is machine driven and can be added to CI for formatting or linting is good :-) Is cmake-format the generally accepted solution across CMake projects ? Or are there other options available ? Are you able to point to any large / well know CMake projects using it ? As being old and not maintained is not necessarily bad if it works, however it is bad if it creates false positives with modern syntax or is hard to get through distribution mechanisms. And the same would be said about Probably best way is to add it to CI for Linux, either like |
Beta Was this translation helpful? Give feedback.
-
C++ code is formatted by clang format, rust with rustfmt, cargo file with magic (I don't know what format toml, but it is auto formatted somehow in my ide). Only cmake file are manually formatted which is annoying.
Basic config
.cmake-format
could look like that to match the style already used.Special configuration will be required for corrosion functions.
I know the project isn't maintained in the recent years, and sometime formatting look weird, but a least it is automatic.
What are you tought about that?
Beta Was this translation helpful? Give feedback.
All reactions