Skip to content

Commit 1af46cf

Browse files
committed
Merge bitcoin/bitcoin#33896: clang-format: Set InsertNewlineAtEOF: true
fa1bf68 clang-format: Set InsertNewlineAtEOF: true (MarcoFalke) Pull request description: Now that the minimum supported clang version is 17, the `InsertNewlineAtEOF` setting can be set to `true` in the clang-format file. (https://releases.llvm.org/16.0.0/tools/clang/docs/ClangFormatStyleOptions.html#insertnewlineateof) This is in line with the already existing newline linter. Can be tested via: ``` truncate --size=-1 src/init.cpp git diff # Should fail: cargo run --manifest-path ./test/lint/test_runner/Cargo.toml -- --lint=trailing_newline # Restore newline: git diff -U0 | ./contrib/devtools/clang-format-diff.py -p1 -i -v ``` ACKs for top commit: l0rinc: ACK fa1bf68 achow101: ACK fa1bf68 hodlinator: ACK fa1bf68 stickies-v: ACK fa1bf68 hebasto: ACK fa1bf68. janb84: ACK fa1bf68 Tree-SHA512: 6443f0f9e2710fb31c85e4ece5deb9fa25bf22ef2d5cadad2d54a239194860c3a785ffa5dd97be942e42139336575425499f085aa2e3f29003e529fdc20fce20
2 parents 27ac11e + fa1bf68 commit 1af46cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ IndentRequiresClause: true
123123
IndentWidth: 4
124124
IndentWrappedFunctionNames: false
125125
InsertBraces: false
126-
InsertNewlineAtEOF: false
126+
InsertNewlineAtEOF: true
127127
InsertTrailingCommas: None
128128
IntegerLiteralSeparator:
129129
Binary: 0

0 commit comments

Comments
 (0)