Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1681 from advancedtelematic/fix/clang-tidy-quiet
Browse files Browse the repository at this point in the history
Remove extra grep logs when running clang-tidy
  • Loading branch information
pattivacek authored May 28, 2020
2 parents 15f291c + 5e7f4db commit 57793f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/clang-tidy-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fi

# Filter out anything that we aren't trying to compile. Older clang-tidy
# versions (<=6) skipped them automatically.
if grep "${FILE}" "${CMAKE_BINARY_DIR}/compile_commands.json"; then
if grep -q "${FILE}" "${CMAKE_BINARY_DIR}/compile_commands.json"; then
${CLANG_TIDY} -quiet -header-filter="\(${CMAKE_SOURCE_DIR}|\\.\\.\)/src/.*" --extra-arg-before=-Wno-unknown-warning-option -format-style=file -p "${CMAKE_BINARY_DIR}" "${FILE}"
else
echo "Skipping ${FILE}"
Expand Down

0 comments on commit 57793f4

Please sign in to comment.