0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-10-08 21:53:14 +03:00
Files
3rdparty
dark_style_sheet
easyprofiler
CMakeFiles
easy_profiler_core
profiler_gui
reader
sample
scripts
context_switch_logger.stp
make_style.sh
test.sh
.gitignore
CMakeCache.txt
CMakeLists.txt
LICENSE.APACHE
LICENSE.MIT
README.md
appveyor.bat
appveyor.yml
cmake_install.cmake
light_style_sheet
zint-2.6.1
3rdparty.pro
console
demo_r1
demo_r2
designer
designer_plugin
docs
include
limereport
tests
translations
.gitignore
.remarkrc
.travis.yml
COPYING
LICENSE
README.md
common.pri
followTo.patch
limereport.pri
limereport.pro
qzint.pri
LimeReport/3rdparty/easyprofiler/scripts/make_style.sh
2018-02-28 23:19:14 +03:00

20 lines
433 B
Bash
Executable File

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