From bd4741ea8c0cee63144b93e058c6e8915d095f79 Mon Sep 17 00:00:00 2001 From: lazymio Date: Fri, 29 Oct 2021 12:46:06 +0200 Subject: [PATCH] Add format.sh --- format.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 format.sh diff --git a/format.sh b/format.sh new file mode 100644 index 00000000..d4418b15 --- /dev/null +++ b/format.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +find . -maxdepth 1 "(" -name "*.c" -or -name "*.h" ")" -exec clang-format -i -style=file "{}" ";" +find ./msvc -maxdepth 1 "(" -name "*.c" -or -name "*.h" ")" -exec clang-format -i -style=file "{}" ";" +find ./include -maxdepth 2 "(" -name "*.c" -or -name "*.h" ")" -exec clang-format -i -style=file "{}" ";" +find ./tests/unit -maxdepth 1 "(" -name "*.c" -or -name "*.h" ")" -exec clang-format -i -style=file "{}" ";" +find ./samples -maxdepth 1 "(" -name "*.c" -or -name "*.h" ")" -exec clang-format -i -style=file "{}" ";" +find ./qemu "(" -name "unicorn.c" -or -name "unicorn.h" ")" -exec clang-format -i -style=file "{}" ";"