Skip to content

Fixes to detection of clang-format

Simon Spannagel requested to merge clang-format-fixes into master

In some distros the clang-format symlink has been removed (such as Ubuntu 18.04). This was necessary as the different version produce quite different output, so having a clear version number makes more sense here.

These patches check for any clang-format, preferring higher versions. Changes to the git pre-commit hook and the CMake files have been made.

Merge request reports