diff --git a/ci/test/03_test_script.sh b/ci/test/03_test_script.sh index 39e13945e25..d29de80c3e4 100755 --- a/ci/test/03_test_script.sh +++ b/ci/test/03_test_script.sh @@ -209,7 +209,7 @@ if [ "${RUN_TIDY}" = "true" ]; then fi # TODO: Consider enforcing IWYU across the entire codebase. - FILES_WITH_ENFORCED_IWYU="/src/(crypto|index)/.*\\.cpp" + FILES_WITH_ENFORCED_IWYU="/src/((crypto|index)/.*\\.cpp|node/blockstorage.cpp|node/utxo_snapshot.cpp|core_read.cpp|signet.cpp|kernel/chain.cpp)" jq --arg patterns "$FILES_WITH_ENFORCED_IWYU" 'map(select(.file | test($patterns)))' "${BASE_BUILD_DIR}/compile_commands.json" > "${BASE_BUILD_DIR}/compile_commands_iwyu_errors.json" jq --arg patterns "$FILES_WITH_ENFORCED_IWYU" 'map(select(.file | test($patterns) | not))' "${BASE_BUILD_DIR}/compile_commands.json" > "${BASE_BUILD_DIR}/compile_commands_iwyu_warnings.json" diff --git a/src/core_read.cpp b/src/core_read.cpp index 59e011e0661..935f465983d 100644 --- a/src/core_read.cpp +++ b/src/core_read.cpp @@ -4,17 +4,27 @@ #include -#include +#include // IWYU pragma: keep #include +#include