Luna/tools/run-clang-format.sh
2022-11-16 17:37:18 +01:00

13 lines
181 B
Bash
Executable File

#!/usr/bin/env bash
set -e
source $(dirname $0)/env.sh
cd $LUNA_ROOT
SOURCES=($(find kernel/src -type f | grep -v "\.asm"))
for f in ${SOURCES[@]}
do
clang-format $f -i
done