mirror of
https://github.com/fralx/LimeReport.git
synced 2025-10-01 03:29:49 +03:00
Easyprofiler added
This commit is contained in:
19
3rdparty/easyprofiler/scripts/make_style.sh
vendored
Executable file
19
3rdparty/easyprofiler/scripts/make_style.sh
vendored
Executable file
@@ -0,0 +1,19 @@
|
||||
if [ "$#" -ne 1 ]; then
|
||||
echo -e "Usage: \n$0 DIRECTORY\n\twhere DIRECTORY is a derectory with sources for styling"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! [ -x "$(command -v clang-format)" ]; then
|
||||
echo 'Error: clang-format is not installed. Please install clang-format with minimal version 3.8' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
DIR=$1
|
||||
|
||||
FILES=`find $DIR -name "*.h" -or -name "*.cpp"`
|
||||
|
||||
for FILE in $FILES
|
||||
do
|
||||
echo "Set style for $FILE"
|
||||
clang-format -i $FILE
|
||||
done
|
Reference in New Issue
Block a user