diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-04-23 08:28:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-23 08:28:31 +0200 |
| commit | dab3762388278d1efadec1040a8f5c5ebd286b24 (patch) | |
| tree | 8e1fd9656a6650129c96f11ff7453f4a56b27517 /format.sh | |
| parent | d53efd75ace0791a36d8cb6c2f41bca3cb6fe7f0 (diff) | |
| parent | 72f132b8fb9f2a47b0f723f4dc4eaa4fdb0c45bd (diff) | |
Merge pull request #1 from nekernel-org/dev0.0.1b
1.1.0: New BTB verison.
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..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 |
