diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-29 21:40:49 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-29 21:40:49 -0500 |
| commit | e0e8acd3db4ba1d50384f26305c6cc9021652840 (patch) | |
| tree | 2dbea485a392789fc67aa590f8a7afb9f263be3c /format.sh | |
| parent | 44ad26b648a79503303c596bb20a6995255dc630 (diff) | |
| parent | b456c928fecf78157270b052e441a427f06afdda (diff) | |
Merge pull request #94 from nekernel-org/dev
Vet.h and Ref.h
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 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 |
