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:
1 file changed
+1
-1
@@ -198,7 +198,7 @@ if [[ "${RUN_IWYU}" == true ]]; then
|
|||||||
-Xiwyu --check_also="*/primitives/*.h" \
|
-Xiwyu --check_also="*/primitives/*.h" \
|
||||||
2>&1 | tee /tmp/iwyu_ci.out
|
2>&1 | tee /tmp/iwyu_ci.out
|
||||||
python3 "/include-what-you-use/fix_includes.py" --nosafe_headers < /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"
|
run_iwyu "compile_commands_iwyu_errors.json"
|
||||||
|
|||||||
Reference in new issue
Block a user