clang-format: use AngleBracket for main includes
What changed, and why it matters
This is a purely cosmetic change to the project's code formatting configuration file. It tells the clang-format tool to treat project header files included with angle brackets (like <signet.h>) as 'main headers' so they stay at the top of include lists. There is no functional code change and no security impact.
No security action needed. This is a style/formatting tooling change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit adds a single line ‘MainIncludeChar: AngleBracket’ to src/.clang-format. This setting controls how clang-format identifies the ‘main include’ (the header corresponding to the current .cpp file) when sorting includes. Bitcoin Core uses angle brackets for project headers, so this aligns the formatter with the project’s existing style. It does not alter compiled code, runtime behavior, or any security-relevant logic.
Changed components
src/.clang-formatInspect captured patch +1 / −0
diff --git a/src/.clang-format b/src/.clang-format
index 4db09138..2b74e40b 100644
--- a/src/.clang-format
+++ b/src/.clang-format
@@ -142,6 +142,7 @@ LambdaBodyIndentation: Signature
LineEnding: DeriveLF
MacroBlockBegin: ''
MacroBlockEnd: ''
+MainIncludeChar: AngleBracket
MaxEmptyLinesToKeep: 2
NamespaceIndentation: None
ObjCBinPackProtocolList: Auto
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.