checkstyle: add clang-format dependency, fix bug