summaryrefslogtreecommitdiffhomepage
path: root/format.sh
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-29 21:43:30 -0500
committerGitHub <noreply@github.com>2025-11-29 21:43:30 -0500
commiteea9136a2ef0758233d7b58f2a9e4b37f2d91354 (patch)
tree7ce9f1eeb130b564e5298f1ffed2c01a6e3a79e1 /format.sh
parent0c4df216280fb31a18f933a0fc9abd8efdc81305 (diff)
parentf9d7e440829fb5899198517396bbc7e580ecb801 (diff)
Merge pull request #15 from nekernel-org/devv0.0.7
chore: move format.sh to root
Diffstat (limited to 'format.sh')
-rwxr-xr-xformat.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/format.sh b/format.sh
new file mode 100755
index 0000000..f36943c
--- /dev/null
+++ b/format.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+THIS_PATH="$(realpath "$0")"
+THIS_DIR="$(dirname "$THIS_PATH")"
+
+FILE_LIST="$(find "$THIS_DIR" | grep -E ".*(\.cc|\.c|\.h|\.inl)$")"
+
+echo -e "Files found to format = \n\"\"\"\n$FILE_LIST\n\"\"\""
+
+clang-format --verbose -i --style=file $FILE_LIST