summaryrefslogtreecommitdiff
path: root/ci/codestyle.sh
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2023-05-01 13:43:26 -0400
committerColin Walters <walters@verbum.org>2023-05-01 15:37:56 -0400
commitf56131976ea7e0945101a3ce97256dc1280cc0d3 (patch)
tree474202d5dfcb6a14da9ada97cae10d97b20d8cb6 /ci/codestyle.sh
parentd333f20b4a139387215017c9d52ee591ba6b199d (diff)
downloadostree-f56131976ea7e0945101a3ce97256dc1280cc0d3.tar.gz
Add clang formatting infrastructure
Prep for reformatting the codebase.
Diffstat (limited to 'ci/codestyle.sh')
-rwxr-xr-xci/codestyle.sh7
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