Unfortunately git commit reports:
SETUP ERROR: no git-clang-format executable found, or it is not executable
Hook /home/jv/kicad/.githooks/pre-commit.d/50-check-format failed with error code 1
This file contains:
check_clang_format() {
if hash git-clang-format 2>/dev/null; then
return
else
echo “SETUP ERROR: no git-clang-format executable found, or it is not executable”
exit 1
fi
clang itself is available everywhere
clang
clang: error: no input files
but I have no idea about how to setup git-clang-format
echoes file.cpp why I assume clang-format package is already installed beside clang and llvm by default (ubuntu 18.03 LTS) ? Does the use need the clang server protocoll clangd ?
ok - success. There was
/usr/lib/llvm-6.0/bin/git-clang-format out of path what was linked inside search path with link name
/usr/bin/git-clang-format-6.0
Decided to rename the link removing -6.0 in the hope of less side effects than changing path or 50-check-format file. Nevertheless its making an unreadble mess of my file e.g: