From 3b51902713ada62b8c042592da21b7a56a61a210 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Thu, 20 Apr 2023 10:53:11 +0200 Subject: [PATCH] Allow single line enums Although clang-format doesn't seem to be following the rule. --- .clang-format | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.clang-format b/.clang-format index 4f4fa98..d6a3aee 100644 --- a/.clang-format +++ b/.clang-format @@ -7,6 +7,7 @@ BasedOnStyle: LLVM AlignAfterOpenBracket: DontAlign AlignConsecutiveAssignments: None AllowShortBlocksOnASingleLine: false +AllowShortEnumsOnASingleLine: true AllowShortFunctionsOnASingleLine: None AllowShortIfStatementsOnASingleLine: false AlwaysBreakAfterDefinitionReturnType: true @@ -15,6 +16,7 @@ BreakBeforeBraces: Custom BreakConstructorInitializers: AfterColon BraceWrapping: AfterControlStatement: false + AfterEnum: false AfterFunction: true AfterStruct: false AfterUnion: false