lint: Allow including bitcoin-config.h without IWYU pragma

This commit is contained in:
Luke Dashjr 2025-02-17 15:15:54 +00:00
parent eed7bb6496
commit b24c622edf

View File

@ -376,7 +376,7 @@ fn lint_includes_build_config() -> LintResult {
"--files-with-matches"
},
if mode {
"^#include <config/bitcoin-config.h> // IWYU pragma: keep$"
"#include <config/bitcoin-config.h>"
} else {
"#include <config/bitcoin-config.h>" // Catch redundant includes with and without the IWYU pragma
},