Skip to content
Snippets Groups Projects
Commit 7766de00 authored by Florian Schmaus's avatar Florian Schmaus
Browse files

[tools] improve check-iwyu script

parent 225e26e6
No related branches found
No related tags found
No related merge requests found
...@@ -96,12 +96,13 @@ fi ...@@ -96,12 +96,13 @@ fi
# See # See
# - https://github.com/include-what-you-use/include-what-you-use/issues/789 # - https://github.com/include-what-you-use/include-what-you-use/issues/789
# - https://github.com/include-what-you-use/include-what-you-use/commit/a7499e4a2b416592777cc4c33fca746d091af738 # - https://github.com/include-what-you-use/include-what-you-use/commit/a7499e4a2b416592777cc4c33fca746d091af738
ERROR_STRINGS=() ERROR_STRINGS=(
ERROR_STRINGS+=("should add these lines:") "should add these lines:"
ERROR_STRINGS+=("fatal error:") "should remove these lines:"
)
for ERROR_STRING in "${ERROR_STRINGS[@]}"; do for ERROR_STRING in "${ERROR_STRINGS[@]}"; do
if grep -q "${ERROR_STRING}" "${IWYU_LOG}"; then if grep -qF "${ERROR_STRING}" "${IWYU_LOG}"; then
echoerr "IWYU found errors!" echoerr "IWYU found errors!"
cat "${IWYU_LOG}" cat "${IWYU_LOG}"
exit 1 exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment