iwyu, doc: Document `IWYU pragma: export` for `<logging/categories.h>`
What changed, and why it matters
This commit only adds a comment explaining how two source-code files relate to each other. It does not change any program behavior, fix a bug, or alter executable code.
No security action needed; this is a documentation-only change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff adds a two-line comment in src/util/log.h documenting that the header works with logging/categories.h and exposes the complete logging interface. The #include
Changed components
src/util/log.hInspect captured patch +2 / −0
diff --git a/src/util/log.h b/src/util/log.h
index aae23f0d..1bec49f2 100644
--- a/src/util/log.h
+++ b/src/util/log.h
@@ -5,6 +5,8 @@
#ifndef BITCOIN_UTIL_LOG_H
#define BITCOIN_UTIL_LOG_H
+// This header works in tandem with `logging/categories.h`
+// to expose the complete logging interface.
#include <logging/categories.h> // IWYU pragma: export
#include <tinyformat.h>
#include <util/check.h>
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.