clang-format: Set InsertNewlineAtEOF: true
What changed, and why it matters
This commit changes a single formatting setting in Bitcoin Core's code style configuration file. It tells the clang-format tool to automatically add a blank newline at the end of source files when it runs. This has no effect on how the software runs, what data it processes, or its security. It only affects whitespace in source code files.
No security action needed. This is a routine code-style tooling change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch modifies src/.clang-format, changing InsertNewlineAtEOF from false to true. This is a purely cosmetic/style configuration change for the clang-format linter. It does not alter compiled code behavior, introduce or remove any logic, or affect memory safety, cryptography, networking, consensus, or any other security-relevant subsystem.
Changed components
src/.clang-formatInspect captured patch +1 / −1
diff --git a/src/.clang-format b/src/.clang-format
index 096c6f86..dd3f1070 100644
--- a/src/.clang-format
+++ b/src/.clang-format
@@ -123,7 +123,7 @@ IndentRequiresClause: true
IndentWidth: 4
IndentWrappedFunctionNames: false
InsertBraces: false
-InsertNewlineAtEOF: false
+InsertNewlineAtEOF: true
InsertTrailingCommas: None
IntegerLiteralSeparator:
Binary: 0
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.