Initial provision of cmake-format configuration file.
The concrete formatting rules can be discussed in the course of further development.
The program was tested solely for our own use cases, which might differ from yours.
Jupp Tscheak jupp.tscheak@daimler.com, Mercedes-Benz AG on behalf of Daimler TSS GmbH
https://github.com/Daimler/daimler-foss/blob/master/PROVIDER_INFORMATION.md
Merge request reports
Activity
Cool. Didn't even know such a thing existed. So you've got my upvote here ;)
As with clang-format I'd like to use such tools for all simopenpass projects. I won't be able to check this until August, so maybe someone else could do that (@rbiegel, @rcaloudis2v6 ?)
added Help Wanted label
I've spent some time with the cmakelang package. It seems to be stable and easy to use. Just format cmake files via
cmake-format -c .cmake-format -o global_new.cmake global.cmake
. I am pretty sure things can be formatted recursively, too. I attached the output for one of simopenpass's main cmake filessimopenpass/global.cmake
as a first impression. Jupp's config file was used. Personally, I really like the uniform formatting that is produced as a result even though the config file needs some changes here and there :-)Edited by Robin Caloudismentioned in commit 760ae39a