Add BraceWrapping rules (#3066)

This commit is contained in:
Haris Gušić
2023-01-22 17:54:29 +01:00
committed by GitHub
parent 685d0ee84b
commit 03a20fbf8a
2 changed files with 14 additions and 1 deletions

View File

@@ -4,3 +4,13 @@ IndentWidth: 4
AccessModifierOffset: -4 AccessModifierOffset: -4
AlwaysBreakAfterDefinitionReturnType: None AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None AlwaysBreakAfterReturnType: None
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: true
AfterStruct: true
AfterEnum: true
AfterFunction: true
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false

View File

@@ -25,7 +25,10 @@ class AbstractLogger;
* `KEY` is the name of the generated getter function. * `KEY` is the name of the generated getter function.
*/ */
#define CONFIG_GETTER(KEY, TYPE) \ #define CONFIG_GETTER(KEY, TYPE) \
TYPE KEY() { return value(QStringLiteral(#KEY)).value<TYPE>(); } TYPE KEY() \
{ \
return value(QStringLiteral(#KEY)).value<TYPE>(); \
}
/** /**
* Declare and implement a setter for a config option. `FUNC` is the name of the * Declare and implement a setter for a config option. `FUNC` is the name of the