Skip to content

Commit 04db76a

Browse files
committed
Allow short case labels on single line, wrap braces before lambda bodies
#84
1 parent 2b9b75a commit 04db76a

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.clang-format

+2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
AccessModifierOffset: -4
77
AlignAfterOpenBracket: DontAlign
88
AllowShortBlocksOnASingleLine: true
9+
AllowShortCaseLabelsOnASingleLine: true
910
AllowShortFunctionsOnASingleLine: All
1011
BasedOnStyle: LLVM
1112
BraceWrapping:
13+
BeforeLambdaBody: true
1214
AfterCaseLabel: true
1315
AfterClass: true
1416
AfterControlStatement: true

dlls/soundent.cpp

+4-5
Original file line numberDiff line numberDiff line change
@@ -270,13 +270,12 @@ void CSoundEnt::Initialize()
270270
//=========================================================
271271
int CSoundEnt::ISoundsInList(int iListType)
272272
{
273-
int iThisSound = [=]() {
273+
int iThisSound = [=]()
274+
{
274275
switch (iListType)
275276
{
276-
case SOUNDLISTTYPE_FREE:
277-
return m_iFreeSound;
278-
case SOUNDLISTTYPE_ACTIVE:
279-
return m_iActiveSound;
277+
case SOUNDLISTTYPE_FREE: return m_iFreeSound;
278+
case SOUNDLISTTYPE_ACTIVE: return m_iActiveSound;
280279
default:
281280
ALERT(at_console, "Unknown Sound List Type!\n");
282281
return SOUNDLIST_EMPTY;

0 commit comments

Comments
 (0)