1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-04-29 20:23:55 +00:00
CLI11/scripts/check_style.sh
2018-05-06 18:36:33 +02:00

11 lines
175 B
Bash
Executable File

#!/usr/bin/env sh
set -evx
clang-format --version
git ls-files -- '*.cpp' '*.hpp' | xargs clang-format -sort-includes -i -style=file
git diff --exit-code --color
set +evx