SDL: Merge commit 'c4b471bd1314933fd726ef987d96c92c68033f99' into main

From c4b471bd1314933fd726ef987d96c92c68033f99 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Tue, 10 Jan 2023 16:43:15 +0100
Subject: [PATCH] Ensure training new line in cocci files

---
 .editorconfig                     | 3 +++
 build-scripts/SDL_migration.cocci | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/.editorconfig b/.editorconfig
index ed21fb1ad6cf..f3d1d1e8a67e 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -63,3 +63,6 @@ tab_width = 4
 
 [{*.bat,*.rc}]
 end_of_line = crlf
+
+[*.cocci]'
+insert_final_newline = true
diff --git a/build-scripts/SDL_migration.cocci b/build-scripts/SDL_migration.cocci
index 71466de5cea8..24b85e8045fd 100644
--- a/build-scripts/SDL_migration.cocci
+++ b/build-scripts/SDL_migration.cocci
@@ -1746,4 +1746,4 @@ SDL_CreateRenderer(e1,
 @@
 - SDL_GetRectDisplayIndex
 + SDL_GetDisplayIndexForRect
-  (...)
\ No newline at end of file
+  (...)