Skip to content

Commit

Permalink
Make clang-format insert a newline at end of file if missing (valkey-…
Browse files Browse the repository at this point in the history
…io#1023)

clang generates warning if there is no newline at the end of the source
file.

Update .clang-format to handle the missing newline at eof.

Signed-off-by: haoqixu <[email protected]>
Signed-off-by: Ping Xie <[email protected]>
  • Loading branch information
haoqixu authored and PingXie committed Sep 14, 2024
1 parent 4f8d523 commit 5b06fca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/.clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ SortIncludes: false
AllowAllParametersOfDeclarationOnNextLine: false
BinPackParameters: false
AlignAfterOpenBracket: Align
InsertNewlineAtEOF: true

0 comments on commit 5b06fca

Please sign in to comment.