mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 00:33:02 +03:00
0fca7169d3
except those placed in 3rdparty directories.
12 lines
286 B
Bash
Executable File
12 lines
286 B
Bash
Executable File
#!/bin/bash
|
|
|
|
FORMATTER="clang-format-14"
|
|
|
|
find . -type f \
|
|
-regextype posix-extended -regex '^.*\.(cpp|c\+\+|cxx|cc|h|hh|hpp|h\+\+|hxx)$' \
|
|
-not -path '*3rdparty*' \
|
|
-exec ${FORMATTER} -i -style=file {} \;
|
|
|
|
git status > /dev/null
|
|
git diff-index --exit-code --name-only HEAD
|