diff options
author | Colin Walters <walters@verbum.org> | 2023-05-01 13:43:26 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2023-05-01 15:37:56 -0400 |
commit | f56131976ea7e0945101a3ce97256dc1280cc0d3 (patch) | |
tree | 474202d5dfcb6a14da9ada97cae10d97b20d8cb6 /ci/codestyle.sh | |
parent | d333f20b4a139387215017c9d52ee591ba6b199d (diff) | |
download | ostree-f56131976ea7e0945101a3ce97256dc1280cc0d3.tar.gz |
Add clang formatting infrastructure
Prep for reformatting the codebase.
Diffstat (limited to 'ci/codestyle.sh')
-rwxr-xr-x | ci/codestyle.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ci/codestyle.sh b/ci/codestyle.sh index 1cf0a23c..850661e5 100755 --- a/ci/codestyle.sh +++ b/ci/codestyle.sh @@ -15,6 +15,13 @@ done echo "ok" fi +# Will uncomment this once we reformat +#if command -v clang-format; then +# echo -n "checking clang-format... " +# git ls-files '**.c' '**.cxx' '**.h' '**.hpp' | xargs clang-format --Werror --dry-run +# echo "ok" +#fi + echo -n 'grep-based static analysis... ' patterns=(glnx_fd_close) for pat in "${patterns[@]}"; do |