From 3513f220276c1905aeaadc362b59a7ed10cad168 Mon Sep 17 00:00:00 2001
From: xu0o0 <hq.xu0o0@gmail.com>
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 <hq.xu0o0@gmail.com>
---
 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