From 6ca76cde6b5c6a26adfdb371f59714c9d1f203ae Mon Sep 17 00:00:00 2001 From: Sai Kishor Kothakota Date: Mon, 11 Dec 2023 17:53:54 +0100 Subject: [PATCH] added InsertBraces option of clang formatting and update the needed mirrors-clang-format version (#1194) --- .clang-format | 1 + .pre-commit-config.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index 698bda7da8..10dd2c7c7a 100644 --- a/.clang-format +++ b/.clang-format @@ -12,4 +12,5 @@ DerivePointerAlignment: false PointerAlignment: Middle ReflowComments: true IncludeBlocks: Preserve +InsertBraces: true ... diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0ad4d0aa6c..6e6d41cc9c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -62,7 +62,7 @@ repos: # CPP hooks - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v14.0.6 + rev: v15.0.6 hooks: - id: clang-format