clang-format receives file name without the path part in the -assume-file parameter and thus isn't able to find the style config closest to the file's location. For a file subproject/main.c it will use ./.clang-format instead of subproject/.clang-format. Change the parameter to % instead of %:t to receive full path for the file being formatted.
clang-format
receives file name without the path part in the-assume-file
parameter and thus isn't able to find the style config closest to the file's location. For a filesubproject/main.c
it will use./.clang-format
instead ofsubproject/.clang-format
. Change the parameter to%
instead of%:t
to receive full path for the file being formatted.Fixes #459