iwyu, clang-format: Sort includes
This commit is contained in:
3 files changed
+3
-2
No files matched your search
@@ -10,7 +10,7 @@ export CI_IMAGE_NAME_TAG="mirror.gcr.io/debian:trixie" # To build codegen, CMak
|
|||||||
export CONTAINER_NAME=ci_native_iwyu
|
export CONTAINER_NAME=ci_native_iwyu
|
||||||
export TIDY_LLVM_V="21"
|
export TIDY_LLVM_V="21"
|
||||||
export APT_LLVM_V="${TIDY_LLVM_V}"
|
export APT_LLVM_V="${TIDY_LLVM_V}"
|
||||||
export PACKAGES="clang-${TIDY_LLVM_V} libclang-${TIDY_LLVM_V}-dev llvm-${TIDY_LLVM_V}-dev jq libevent-dev libboost-dev libzmq3-dev systemtap-sdt-dev qt6-base-dev qt6-tools-dev qt6-l10n-tools libqrencode-dev libsqlite3-dev libcapnp-dev capnproto"
|
export PACKAGES="clang-${TIDY_LLVM_V} clang-format-${TIDY_LLVM_V} libclang-${TIDY_LLVM_V}-dev llvm-${TIDY_LLVM_V}-dev jq libevent-dev libboost-dev libzmq3-dev systemtap-sdt-dev qt6-base-dev qt6-tools-dev qt6-l10n-tools libqrencode-dev libsqlite3-dev libcapnp-dev capnproto"
|
||||||
export NO_DEPENDS=1
|
export NO_DEPENDS=1
|
||||||
export RUN_UNIT_TESTS=false
|
export RUN_UNIT_TESTS=false
|
||||||
export RUN_FUNCTIONAL_TESTS=false
|
export RUN_FUNCTIONAL_TESTS=false
|
||||||
|
|||||||
@@ -226,6 +226,7 @@ if [[ "${RUN_IWYU}" == true ]]; then
|
|||||||
-Xiwyu --max_line_length=160 \
|
-Xiwyu --max_line_length=160 \
|
||||||
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
|
||||||
}
|
}
|
||||||
|
|
||||||
run_iwyu "compile_commands_iwyu_errors.json"
|
run_iwyu "compile_commands_iwyu_errors.json"
|
||||||
|
|||||||
+1
-1
@@ -97,7 +97,7 @@ ForEachMacros:
|
|||||||
- BOOST_FOREACH
|
- BOOST_FOREACH
|
||||||
IfMacros:
|
IfMacros:
|
||||||
- KJ_IF_MAYBE
|
- KJ_IF_MAYBE
|
||||||
IncludeBlocks: Preserve
|
IncludeBlocks: Regroup
|
||||||
IncludeCategories:
|
IncludeCategories:
|
||||||
- Regex: '^<bitcoin-build-config\.h>'
|
- Regex: '^<bitcoin-build-config\.h>'
|
||||||
Priority: -1
|
Priority: -1
|
||||||
|
|||||||
Reference in new issue
Block a user