Allow short case labels on single line, wrap braces before lambda bodies

#84
This commit is contained in:
Sam V 2021-11-29 22:53:18 +01:00
parent 2b9b75ac97
commit 04db76ac80
2 changed files with 6 additions and 5 deletions

View file

@ -6,9 +6,11 @@
AccessModifierOffset: -4
AlignAfterOpenBracket: DontAlign
AllowShortBlocksOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
BasedOnStyle: LLVM
BraceWrapping:
BeforeLambdaBody: true
AfterCaseLabel: true
AfterClass: true
AfterControlStatement: true

View file

@ -270,13 +270,12 @@ void CSoundEnt::Initialize()
//=========================================================
int CSoundEnt::ISoundsInList(int iListType)
{
int iThisSound = [=]() {
int iThisSound = [=]()
{
switch (iListType)
{
case SOUNDLISTTYPE_FREE:
return m_iFreeSound;
case SOUNDLISTTYPE_ACTIVE:
return m_iActiveSound;
case SOUNDLISTTYPE_FREE: return m_iFreeSound;
case SOUNDLISTTYPE_ACTIVE: return m_iActiveSound;
default:
ALERT(at_console, "Unknown Sound List Type!\n");
return SOUNDLIST_EMPTY;