freebsd-src/contrib/libcbor/clang-format.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
253 B
Bash
Raw Normal View History

2021-10-01 23:46:00 +00:00
#!/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")"
2023-04-20 23:17:42 +00:00
clang-format $@ -style=file -i ${SOURCES}