From 5ced2c7af95142683e59f3b28d31dae26ec18bdb Mon Sep 17 00:00:00 2001
From: SachinVin <26602104+SachinVin@users.noreply.github.com>
Date: Wed, 27 Sep 2023 19:29:49 +0530
Subject: [PATCH] Bump clang format to 15 (#7014)

---
 .ci/clang-format.sh | 2 +-
 CMakeLists.txt      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.ci/clang-format.sh b/.ci/clang-format.sh
index 156ffadd0..8aa078f09 100755
--- a/.ci/clang-format.sh
+++ b/.ci/clang-format.sh
@@ -7,7 +7,7 @@ if grep -nrI '\s$' src *.yml *.txt *.md Doxyfile .gitignore .gitmodules .ci* dis
 fi
 
 # Default clang-format points to default 3.5 version one
-CLANG_FORMAT=clang-format-12
+CLANG_FORMAT=clang-format-15
 $CLANG_FORMAT --version
 
 if [ "$GITHUB_EVENT_NAME" = "pull_request" ]; then
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7580398c5..d193ab768 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -281,7 +281,7 @@ endif()
 # against all the src files. This should be used before making a pull request.
 # =======================================================================
 
-set(CLANG_FORMAT_POSTFIX "-12")
+set(CLANG_FORMAT_POSTFIX "-15")
 find_program(CLANG_FORMAT
     NAMES clang-format${CLANG_FORMAT_POSTFIX}
           clang-format