diff --git a/ci/run_clang_tidy.sh b/ci/run_clang_tidy.sh index 6412bedc1061..f9b54d3a80d8 100755 --- a/ci/run_clang_tidy.sh +++ b/ci/run_clang_tidy.sh @@ -26,7 +26,8 @@ echo "Generating compilation database..." # bazel build need to be run to setup virtual includes, generating files which are consumed # by clang-tidy -"${ENVOY_SRCDIR}/tools/gen_compilation_database.py" --include_headers +read -ra COMP_DB_TARGETS <<< "$COMP_DB_TARGETS" +"${ENVOY_SRCDIR}/tools/gen_compilation_database.py" --include_headers "${COMP_DB_TARGETS[@]}" # Do not run clang-tidy against win32 impl # TODO(scw00): We should run clang-tidy against win32 impl once we have clang-cl support for Windows