diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-19 09:00:30 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-19 09:00:30 +0100 |
| commit | 33cbf6971da84801c489ce5ca19ba18867c0b7e1 (patch) | |
| tree | 92ce38552422aac23e6046344af490bdab8d52f7 /format.sh | |
| parent | bd28cc476c2fc76978630e756e27c4bcd58f8e9c (diff) | |
chore: implement config.hpp, add MailMap, compile_flags, and format files.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'format.sh')
| -rwxr-xr-x | format.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/format.sh b/format.sh new file mode 100755 index 0000000..28928f2 --- /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 ".*(\.cpp|\.c|\.hpp|\.inl)$")" + +echo -e "Files found to format = \n\"\"\"\n$FILE_LIST\n\"\"\"" + +clang-format --verbose -i --style=file $FILE_LIST |
