From bcbd62a57e00822a50a7cc5653e316dcf8280aec Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 22 Feb 2024 14:42:10 +0100 Subject: [PATCH] Clang-Format: Ensure single new line at the end of files This is similar to PR #118031, but addressed to 4.1 branch to help mitigating style-specific conflicts. Additionally, explicitly ensure single new line at the end of the file. Pull Request: https://projects.blender.org/blender/blender/pulls/118380 --- .clang-format | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.clang-format b/.clang-format index 17196f7ddab..87972abadfa 100644 --- a/.clang-format +++ b/.clang-format @@ -278,3 +278,7 @@ StatementMacros: MacroBlockBegin: "^OSL_CLOSURE_STRUCT_BEGIN$" MacroBlockEnd: "^OSL_CLOSURE_STRUCT_END$" + +# Ensure single new line at the end of source files. +InsertNewlineAtEOF: True +KeepEmptyLinesAtEOF: False