summaryrefslogtreecommitdiffhomepage
path: root/format.sh
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-29 21:42:25 -0500
committerAmlal El Mahrouss <amlal@nekernel.org>2025-11-29 21:42:25 -0500
commitf9d7e440829fb5899198517396bbc7e580ecb801 (patch)
tree7ce9f1eeb130b564e5298f1ffed2c01a6e3a79e1 /format.sh
parent1b5097d5035cb73a4845e914021851bf81186bfb (diff)
chore: move format.sh to root
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
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