You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spdlog/scripts/format.sh

12 lines
345 B
Bash

#!/bin/bash
cd "$(dirname "$0")"/..
pwd
find_sources="find include src tests example bench -type f -name *\.h -o -name *\.cpp"
echo -n "Running dos2unix "
$find_sources | xargs -I {} sh -c "dos2unix '{}' 2>/dev/null; echo -n '.'"
echo
echo -n "Running clang-format "
$find_sources | xargs -I {} sh -c "clang-format -i {}; echo -n '.'"
9 months ago
echo