Sherman-Morrison/tools/restyle.sh
François Coppens fa61b50bb0 - Optimize WB3 by inlining matmuls and simplifying copies
- Occasional code restyling with 'clang-formant --style=LLVM'.
2021-07-12 08:13:58 +02:00

16 lines
293 B
Bash
Executable File

#!/usr/bin/env bash
STYLE='--style=LLVM'
FORMATER='clang-format -i'
if [[ -z $SMVARS ]]
then
echo '$SMVARS is not set. Please source '/path/to/Sherman-Morrison/smvars.sh''
exit 1
fi
for ext in c cc cpp h hpp
do
find $SMROOT -type f -iname "*.${ext}" -exec $FORMATER $STYLE {} \;
done