CIS-kernel/scripts/clang-format.sh
2025-01-13 23:25:09 +03:00

12 lines
257 B
Bash
Executable File

#!/bin/bash
pwd=$(pwd)
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd $SCRIPT_DIR/..
clang-format --style=file --dump-config
find ./ -iname '*.h' -o -iname '*.c' | xargs clang-format -i --style=file --verbose
cd $pwd