So I just ran make format in my dune-xt checkout and I got a lot of changes. Very uncool since I only did this prior to committing.
The reason being my .clang-format link pointed to the 6er spec still.
Not sure how this happened. dunecontrol all had run already. We really need a way to prevent this type of issue going forward.
I did not include the commits but rather ran make format. Was a bit aurprised bout the little number of changes, so perhaps I suffered the same misconfiguration...
if(NOT TARGET format) if(NOT ClangFormat_FOUND) message(WARNING "clang-format not found, not adding format target") else() add_custom_target(format) endif() else() if(NOT ClangFormat_FOUND) message(FATAL "clang-format not found but format target already exists") endif() endif(NOT TARGET format)
Clang-format-10 will only be available from the next debian release. It'd be fine with a simple to install backport package or sth though, but a compile from source is def not worth this imo.
With the incoming pre-commit setup this becomes much easier. clang-format is sourced from binary wheels.
Here's what happens (and how-to) switch to spec version 13: 47b2984b
Very nice! This will also make future updates much easier since we only have to change a single line in the config and do not have to wait till the respective version is available in all our CI environments.