Luna/tools/run-clang-format.sh

15 lines
262 B
Bash
Raw Normal View History

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