clang_format.hook 180 字节
Newer Older
1 2 3
#!/bin/bash
set -e

4
readonly VERSION="13.0.0"
5 6 7 8

version=$(clang-format -version)

if ! [[ $version == *"$VERSION"* ]]; then
9
    pip install clang-format==13.0.0
10 11 12
fi

clang-format $@