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>
This commit is contained in:
xu0o0 2024-09-12 13:33:07 +08:00 committed by GitHub
parent 8cca11ac54
commit 3513f22027
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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