summaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-29 21:15:44 -0500
committerAmlal El Mahrouss <amlal@nekernel.org>2025-11-29 21:15:44 -0500
commit1b5097d5035cb73a4845e914021851bf81186bfb (patch)
tree20a18b5820519da8127a11c72ab1ebd523050ca9 /scripts
parentd27494728d3822bb13d615a27e5d5d6584f5a804 (diff)
chore: NeBuildKit: Architectural improvements over {Defines+Includes}.h
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/format.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/format.sh b/scripts/format.sh
new file mode 100755
index 0000000..f36943c
--- /dev/null
+++ b/scripts/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