diff --git a/.clang-format b/.clang-format index c4ac57ae..adc2b1a6 100644 --- a/.clang-format +++ b/.clang-format @@ -4,3 +4,13 @@ IndentWidth: 4 AccessModifierOffset: -4 AlwaysBreakAfterDefinitionReturnType: None AlwaysBreakAfterReturnType: None + +BreakBeforeBraces: Custom +BraceWrapping: + AfterClass: true + AfterStruct: true + AfterEnum: true + AfterFunction: true + SplitEmptyFunction: false + SplitEmptyRecord: false + SplitEmptyNamespace: false diff --git a/src/utils/confighandler.h b/src/utils/confighandler.h index bae2d8b4..444f6559 100644 --- a/src/utils/confighandler.h +++ b/src/utils/confighandler.h @@ -25,7 +25,10 @@ class AbstractLogger; * `KEY` is the name of the generated getter function. */ #define CONFIG_GETTER(KEY, TYPE) \ - TYPE KEY() { return value(QStringLiteral(#KEY)).value(); } + TYPE KEY() \ + { \ + return value(QStringLiteral(#KEY)).value(); \ + } /** * Declare and implement a setter for a config option. `FUNC` is the name of the