Created
June 15, 2023 23:52
-
-
Save dctucker/4b992824fe8bc43f18e16d7381d68e1f to your computer and use it in GitHub Desktop.
run clang-format in Docker for DelugeFirmware
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd "$(dirname "$0")" | |
run_args=( | |
-it | |
-v $(pwd):/tree | |
--rm | |
--workdir /tree | |
) | |
lint_args=( | |
--recursive | |
--clang-format-executable /clang-format/clang-format14 | |
--style file | |
--inplace true | |
--extensions c,cpp,h,hpp | |
--exclude none | |
./src | |
) | |
docker run "${run_args[@]}" clang-format-lint "${lint_args[@]}" "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment