Skip to content
Snippets Groups Projects

Clang format fix

Merged Nikolay Karpushkin requested to merge karpushkin_AT_inr.ru/cbmroot:clang_fix into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -39,12 +39,12 @@ case $1 in
@@ -39,12 +39,12 @@ case $1 in
check)
check)
echo "Checking if there are format changes required"
echo "Checking if there are format changes required"
git fetch $UPSTREAM
git fetch $UPSTREAM
$GIT_CLANG_FORMAT_BIN --commit $BASE_COMMIT --diff $CHANGED_FILES --extensions h,hpp,c,C,cpp,cxx,tpl
$GIT_CLANG_FORMAT_BIN --binary $CLANG_FORMAT_BIN --commit $BASE_COMMIT --diff $CHANGED_FILES --extensions h,hpp,c,C,cpp,cxx,tpl
;;
;;
apply)
apply)
echo "Applying required format changes"
echo "Applying required format changes"
$GIT_CLANG_FORMAT_BIN --verbose --commit $BASE_COMMIT $CHANGED_FILES --extensions h,hpp,c,C,cpp,cxx,tpl
$GIT_CLANG_FORMAT_BIN --binary $CLANG_FORMAT_BIN --verbose --commit $BASE_COMMIT $CHANGED_FILES --extensions h,hpp,c,C,cpp,cxx,tpl
git status
git status
echo "Next step: git add "$CHANGED_FILES
echo "Next step: git add "$CHANGED_FILES
echo 'Then : git commit -m"Apply clang-format"'
echo 'Then : git commit -m"Apply clang-format"'
Loading