mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-22 15:23:25 +01:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user