freebsd-dev/contrib/libcbor/clang-format.sh
Ed Maste 5d3e7166f6 libcbor: update to 0.10.2
Sponsored by:	The FreeBSD Foundation
2023-04-21 16:10:03 -04:00

11 lines
253 B
Bash
Executable File

#!/usr/bin/env bash
# Usage: ./clang-format.sh <extra arguments>
DIRS="src test examples"
SOURCES=$(find ${DIRS} -name "*.c")
SOURCES+=" $(find ${DIRS} -name "*.h")"
SOURCES+=" $(find ${DIRS} -name "*.cpp")"
clang-format $@ -style=file -i ${SOURCES}