ci: Extend diff context for clang-format

This ensures clang-format can properly restore empty lines between
header groups that were previously stripped by fix_includes.py.
This commit is contained in:
Hennadii Stepanov
2026-02-10 17:22:37 +00:00
parent 91a8e9b549
commit f8d2f30bf3

View File

@@ -198,7 +198,7 @@ if [[ "${RUN_IWYU}" == true ]]; then
-Xiwyu --check_also="*/primitives/*.h" \
2>&1 | tee /tmp/iwyu_ci.out
python3 "/include-what-you-use/fix_includes.py" --nosafe_headers < /tmp/iwyu_ci.out
git diff -U0 | ./contrib/devtools/clang-format-diff.py -binary="clang-format-${TIDY_LLVM_V}" -p1 -i -v
git diff -U1 | ./contrib/devtools/clang-format-diff.py -binary="clang-format-${TIDY_LLVM_V}" -p1 -i -v
}
run_iwyu "compile_commands_iwyu_errors.json"