From 7c3f9379bd4f61ad4a23839f68e193f81c6b2e46 Mon Sep 17 00:00:00 2001 From: xu0o0 Date: Thu, 12 Sep 2024 13:33:07 +0800 Subject: [PATCH] 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 Signed-off-by: Ping Xie --- src/.clang-format | 1 + 1 file changed, 1 insertion(+) diff --git a/src/.clang-format b/src/.clang-format index dceaa4b02..2f0548a93 100644 --- a/src/.clang-format +++ b/src/.clang-format @@ -30,3 +30,4 @@ SortIncludes: false AllowAllParametersOfDeclarationOnNextLine: false BinPackParameters: false AlignAfterOpenBracket: Align +InsertNewlineAtEOF: true