From f6c5e9db124061593a2c6b714d42d3d932a04de6 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Fri, 3 Nov 2023 09:57:08 +0000 Subject: [PATCH] clang-format: single-line functions and if guards --- Source/.clang-format | 3 ++- test/.clang-format | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/.clang-format b/Source/.clang-format index 2403752f3..d30f4466e 100644 --- a/Source/.clang-format +++ b/Source/.clang-format @@ -1,7 +1,8 @@ BasedOnStyle: webkit AlignTrailingComments: true AllowShortBlocksOnASingleLine: true -AllowShortFunctionsOnASingleLine: None +AllowShortFunctionsOnASingleLine: All +AllowShortIfStatementsOnASingleLine: WithoutElse PointerAlignment: Right TabWidth: 4 UseTab: ForIndentation diff --git a/test/.clang-format b/test/.clang-format index 2403752f3..d30f4466e 100644 --- a/test/.clang-format +++ b/test/.clang-format @@ -1,7 +1,8 @@ BasedOnStyle: webkit AlignTrailingComments: true AllowShortBlocksOnASingleLine: true -AllowShortFunctionsOnASingleLine: None +AllowShortFunctionsOnASingleLine: All +AllowShortIfStatementsOnASingleLine: WithoutElse PointerAlignment: Right TabWidth: 4 UseTab: ForIndentation