summaryrefslogtreecommitdiffhomepage
path: root/format.sh
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-29 21:38:33 -0500
committerAmlal El Mahrouss <amlal@nekernel.org>2025-11-29 21:38:33 -0500
commitb456c928fecf78157270b052e441a427f06afdda (patch)
tree2dbea485a392789fc67aa590f8a7afb9f263be3c /format.sh
parentbb303088aa2ed0693e19e93158155dd85783ce76 (diff)
feat: kernel: Introduce Vet.h, better Ref.h, and more improved containers for better kernel code.
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 00000000..f36943cd
--- /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