Skip to content

Commit

Permalink
iox-eclipse-iceoryx#2278 Print execution time for clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
elBoberido committed Apr 24, 2024
1 parent f069696 commit 78d8787
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/scripts/clang_tidy_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ function scan() {
FILE_COUNTER=$((FILE_COUNTER + 1))

if test -f "$FILE"; then
${CLANG_TIDY_CMD} ${WARN_MODE_PARAM} --quiet -p build ${FILE} &
SECONDS_START=${SECONDS}
$(${CLANG_TIDY_CMD} ${WARN_MODE_PARAM} --quiet -p build ${FILE} ; \
echo echo -e "${COLOR_YELLOW} $((${SECONDS}-${SECONDS_START}))s${COLOR_OFF} to scan '${FILE}'") &
CURRENT_CONCURRENT_EXECUTIONS=$((CURRENT_CONCURRENT_EXECUTIONS + 1))
else
echo -e "${COLOR_RED}File does not exist! Aborting!${COLOR_OFF}"
Expand Down

0 comments on commit 78d8787

Please sign in to comment.