Make clang-format insert a newline at end of file if missing (#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 <hq.xu0o0@gmail.com>
Signed-off-by: Ping Xie <pingxie@google.com>
This commit is contained in:
xu0o0 2024-09-12 13:33:07 +08:00 committed by Ping Xie
parent 420da15c0c
commit 7c3f9379bd

View File

@ -30,3 +30,4 @@ SortIncludes: false
AllowAllParametersOfDeclarationOnNextLine: false
BinPackParameters: false
AlignAfterOpenBracket: Align
InsertNewlineAtEOF: true