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

Merge branch 'tools-check-iwyu' into 'master'

[tools] improve check-iwyu script

See merge request flowpack/manycore/emper!6
parents 225e26e6 7766de00
No related branches found
No related tags found
No related merge requests found
......@@ -96,12 +96,13 @@ fi
# 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/commit/a7499e4a2b416592777cc4c33fca746d091af738
ERROR_STRINGS=()
ERROR_STRINGS+=("should add these lines:")
ERROR_STRINGS+=("fatal error:")
ERROR_STRINGS=(
"should add these lines:"
"should remove these lines:"
)
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!"
cat "${IWYU_LOG}"
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