From 781eb2e186514817b30feb67b35c3671dfdaee06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Tue, 19 Nov 2024 10:39:47 +0100 Subject: [PATCH] Add new clang-format option to remove redundant semicolons The new clang-format options (since clang-format 16) removes semicolons after the closing braces of functions and constructors/destructors. (cherry picked from commit c7420eccd9b169dd0fd8864f192373a3390988af) --- .clang-format | 1 + .clang-format.headers | 1 + 2 files changed, 2 insertions(+) diff --git a/.clang-format b/.clang-format index 9381b501f1..e2fc2068a9 100644 --- a/.clang-format +++ b/.clang-format @@ -77,3 +77,4 @@ PenaltyExcessCharacter: 100 Standard: Cpp11 ContinuationIndentWidth: 8 RemoveParentheses: ReturnStatement +RemoveSemicolon: true diff --git a/.clang-format.headers b/.clang-format.headers index 4043abbd46..8a4f06661d 100644 --- a/.clang-format.headers +++ b/.clang-format.headers @@ -65,3 +65,4 @@ PenaltyExcessCharacter: 100 Standard: Cpp11 ContinuationIndentWidth: 8 RemoveParentheses: ReturnStatement +RemoveSemicolon: true