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.
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
.