Fix format script to use correct clang-format (#8558)
author여지환/On-Device Lab(SR)/Staff Engineer/삼성전자 <jihwan.yeo@samsung.com>
Tue, 29 Oct 2019 04:04:03 +0000 (13:04 +0900)
committer오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Tue, 29 Oct 2019 04:04:03 +0000 (13:04 +0900)
Fix script to call correct version of clang-format that system supports

Signed-off-by: JiHwan Yeo <jihwan.yeo@samsung.com>
infra/command/format

index 5bca6f6..cc1fc09 100644 (file)
@@ -95,7 +95,7 @@ function check_cpp_files() {
   done
 
   if [[ ${#FILES_TO_CHECK_CPP} -ne 0 ]]; then
-    clang-format-3.9 -i ${FILES_TO_CHECK_CPP[@]}
+    ${CLANG_FORMAT} -i ${FILES_TO_CHECK_CPP[@]}
     EXIT_CODE=$?
     if [[ ${EXIT_CODE} -ne 0 ]]; then
       INVALID_EXIT=${EXIT_CODE}